Add missing return status check in sane_start(), preventing an ugly segfault later on.

merge-requests/1/head
Julien BLACHE 2007-01-08 18:45:50 +00:00
rodzic aae12092de
commit 7d15d5b06b
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1,5 +1,7 @@
2007-01-08 Julien Blache <jb@jblache.org>
* doc: fix man warnings.
* backend/microtek2.c: add missing return status check in
sane_start(), preventing an ugly segfault later on.
2006-12-18 Alessandro Zummo <a.zummo@towertech.it>

Wyświetl plik

@ -5456,6 +5456,8 @@ sane_start(SANE_Handle handle)
)
)
status = read_cx_shading(ms);
if ( status != SANE_STATUS_GOOD )
goto cleanup;
if ( ms->lightlid35 )
/* hopefully this leads to a switched off flatbed lamp with lightlid */