From 44916ca6d75e0b5f258a098a50d659f31c6625fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 3 Mar 2024 09:54:51 +0100 Subject: New upstream version 1.3.0 --- sanei/sanei_config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sanei/sanei_config.c') diff --git a/sanei/sanei_config.c b/sanei/sanei_config.c index 07c85c9..45f3803 100644 --- a/sanei/sanei_config.c +++ b/sanei/sanei_config.c @@ -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 */ -- cgit v1.2.3