]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure options pointer is not NULL.
authorMichael R Sweet <msweet@msweet.org>
Tue, 4 Nov 2025 16:47:11 +0000 (11:47 -0500)
committerMichael R Sweet <msweet@msweet.org>
Tue, 4 Nov 2025 16:47:14 +0000 (11:47 -0500)
cups/ppd-conflicts.c

index 29e34003a620908fabed0a44409a2a7178114447..86890240f7635949041af542a76f4c043e552d04 100644 (file)
@@ -192,7 +192,7 @@ cupsResolveConflicts(
   * Range check input...
   */
 
-  if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL))
+  if (!ppd || !num_options || !options || !*options || (option == NULL) != (choice == NULL))
     return (0);
 
  /*