Fix error name variable.

merge-requests/463/merge
Thierry HUCHARD 2020-05-10 15:11:30 +02:00
rodzic 64c1c8a865
commit 70daed5132
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -1148,17 +1148,17 @@ sane_read(SANE_Handle h, SANE_Byte *buf, SANE_Int maxlen, SANE_Int *len)
free(handler->scanner->img_data);
handler->scanner->img_data = NULL;
if (handler->scanner->source != PLATEN) {
SANE_Bool next_page = SANE_FALSE;
SANE_Bool next_page = SANE_FALSE;
SANE_Status st = escl_status(handler->device,
handler->scanner->source);
DBG(10, "eSCL : command returned status %s\n", sane_strstatus(st));
// Thank's Alexander Pevzner (pzz@apevzner.com)
switch (status) {
// Thank's Alexander Pevzner (pzz@apevzner.com)
switch (st) {
case SANE_STATUS_GOOD:
case SANE_STATUS_UNSUPPORTED:
case SANE_STATUS_DEVICE_BUSY:
DBG(10, "eSCL : next page\n");
next_page = SANE_TRUE;
next_page = SANE_TRUE;
default:
break;
}