Merge branch 'scanadf_h_d_sigsegv' into 'master'

src/scanadf.c: Fix segfault when `scanadf -h -d <device>`

See merge request sane-project/frontends!12
merge-requests/13/merge
Ralph Little 2024-10-19 16:08:45 +00:00
commit 2e93f931df
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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)