kopia lustrzana https://gitlab.com/sane-project/frontends
Merge branch 'scanadf_h_d_sigsegv' into 'master'
src/scanadf.c: Fix segfault when `scanadf -h -d <device>` See merge request sane-project/frontends!12merge-requests/13/merge
commit
2e93f931df
|
@ -1672,7 +1672,10 @@ Type ``%s --help -d DEVICE'' to get list of all options for DEVICE.\n\
|
|||
\n\
|
||||
List of available devices:", prog_name);
|
||||
if (device)
|
||||
{
|
||||
sane_close(device);
|
||||
device = NULL;
|
||||
}
|
||||
|
||||
status = sane_get_devices (&device_list, SANE_FALSE);
|
||||
if (status == SANE_STATUS_GOOD)
|
||||
|
|
Ładowanie…
Reference in New Issue