@@ -512,15 +512,14 @@ return SANE_STATUS_GOOD; } -static SANE_Int rgblength = 0; -static SANE_Byte *rgbbuf = 0; -static SANE_Byte rgbleftover[3] = {0, 0, 0}; - SANE_Status sane_read (SANE_Handle handle, SANE_Byte * data, SANE_Int max_length, SANE_Int * length) { int len, x, hlp; + SANE_Int rgblength = 0; + SANE_Byte *rgbbuf = 0; + SANE_Byte rgbleftover[3] = {0, 0, 0}; if (handle != MAGIC || !is_open || !infile) return SANE_STATUS_INVAL; /* Unknown handle or no file to read... */