kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'FixEsclTiffSupport' into 'master'
Fix inversed logic in escl_tiff.c:get_TIFF_data See merge request sane-project/backends!715escl-add-user-and-password
commit
785a935e9e
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue