Merge branch 'escl-segfault' into 'master'

Fix segfault sane-escl.

See merge request sane-project/backends!653
pixma-add-canon-ts-3400-series
Ordissimo 2021-10-21 06:58:39 +00:00
commit 3b47d1d26a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -433,6 +433,7 @@ attach_one_config(SANEI_Config __sane_unused__ *config, const char *line,
SANE_Status status;
static ESCL_Device *escl_device = NULL;
if (*line == '#') return SANE_STATUS_GOOD;
if (!strncmp(line, "pdfblacklist", 12)) return SANE_STATUS_GOOD;
if (strncmp(line, "device", 6) == 0) {
char *name_str = NULL;
char *opt_model = NULL;