kopia lustrzana https://gitlab.com/sane-project/backends
sanei_config: malformed line can return NULL for token. We should check.
rodzic
ebb8152058
commit
a617461c63
|
@ -295,6 +295,12 @@ sanei_configure_attach (const char *config_file, SANEI_Config * config,
|
|||
* So we parse the line 2 time to find an option */
|
||||
/* check if it is an option */
|
||||
lp = sanei_config_get_string (lp, &token);
|
||||
if (NULL == token)
|
||||
{
|
||||
// Invalid format?
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp (token, "option", 6) == 0)
|
||||
{
|
||||
/* skip the "option" token */
|
||||
|
|
Ładowanie…
Reference in New Issue