kopia lustrzana https://gitlab.com/sane-project/backends
Add missing return status check in sane_start(), preventing an ugly segfault later on.
rodzic
aae12092de
commit
7d15d5b06b
|
@ -1,5 +1,7 @@
|
||||||
2007-01-08 Julien Blache <jb@jblache.org>
|
2007-01-08 Julien Blache <jb@jblache.org>
|
||||||
* doc: fix man warnings.
|
* 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>
|
2006-12-18 Alessandro Zummo <a.zummo@towertech.it>
|
||||||
|
|
||||||
|
|
|
@ -5456,6 +5456,8 @@ sane_start(SANE_Handle handle)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
status = read_cx_shading(ms);
|
status = read_cx_shading(ms);
|
||||||
|
if ( status != SANE_STATUS_GOOD )
|
||||||
|
goto cleanup;
|
||||||
|
|
||||||
if ( ms->lightlid35 )
|
if ( ms->lightlid35 )
|
||||||
/* hopefully this leads to a switched off flatbed lamp with lightlid */
|
/* hopefully this leads to a switched off flatbed lamp with lightlid */
|
||||||
|
|
Ładowanie…
Reference in New Issue