Merge branch 'FixEsclTiffSupport' into 'master'

Fix inversed logic in escl_tiff.c:get_TIFF_data

See merge request sane-project/backends!715
escl-add-user-and-password
Ordissimo 2022-04-14 13:50:58 +00:00
commit 785a935e9e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ get_TIFF_data(capabilities_t *scanner, int *width, int *height, int *bps)
TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h);
npixels = w * h;
surface = (unsigned char*) malloc(npixels * sizeof (uint32_t));
if (surface != NULL)
if (surface == NULL)
{
DBG( 1, "Escl Tiff : raster Memory allocation problem.\n");
status = SANE_STATUS_INVAL;