Fix missing check in genesys for raw debug data

Patch by Tollef Fog Heen <tfheen@err.no>
merge-requests/1/head
Julien BLACHE 2009-09-26 11:38:03 +02:00
rodzic 3c0b4649bd
commit 561a2c8fe2
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,7 @@
2009-09-26 Julien Blache <jb@jblache.org>
* backend/genesys.c: add missing check when logging raw data,
patch by Tollef Fog Heen <tfheen@err.no>.
2009-09-16 Nicolas Martin <nicols-guest at users.alioth.debian.org>
* backend/pixma_mp150.c, doc/descriptions/pixma.desc,
doc/sane-pixma.man:

Wyświetl plik

@ -4434,8 +4434,11 @@ genesys_read_ordered_data (Genesys_Device * dev, SANE_Byte * destination,
"genesys_read_ordered_data: nothing more to scan: EOF\n");
*len = 0;
#ifdef SANE_DEBUG_LOG_RAW_DATA
fclose (rawfile);
rawfile = NULL;
if (rawfile != NULL)
{
fclose (rawfile);
rawfile = NULL;
}
#endif
return SANE_STATUS_EOF;
}