]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
foomatic-rip: Handle NULL in value in config_set_option() master
authorZdenek Dohnal <zdohnal@redhat.com>
Thu, 9 Oct 2025 17:13:17 +0000 (19:13 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Thu, 9 Oct 2025 17:13:17 +0000 (19:13 +0200)
filter/foomatic-rip/foomaticrip.c

index a92b1e6877baecbb8e6ff0e842b29a95cf95395e..df4e3f1d154cae3c3210c44a5797eae1b8967285 100644 (file)
@@ -125,6 +125,9 @@ void
 config_set_option(const char *key,
                  const char *value)
 {
+  if (!value)
+    return;
+
   if (strcmp(key, "debug") == 0)
     debug = atoi(value);