Tim Waugh 0f0b3f
diff -up foomatic-filters-4.0.3/options.c~ foomatic-filters-4.0.3/options.c
Tim Waugh 0f0b3f
--- foomatic-filters-4.0.3/options.c~	2009-08-19 19:08:41.000000000 +0100
Tim Waugh 0f0b3f
+++ foomatic-filters-4.0.3/options.c	2009-11-05 15:46:58.120129303 +0000
Tim Waugh 0f0b3f
@@ -863,7 +863,7 @@ int option_get_command(dstr_t *cmd, opti
Tim Waugh 0f0b3f
 
Tim Waugh 0f0b3f
     /* If the value is set to a predefined choice */
Tim Waugh 0f0b3f
     choice = option_find_choice(opt, valstr);
Tim Waugh 0f0b3f
-    if (choice) {
Tim Waugh 0f0b3f
+    if (choice && choice->command && *choice->command) {
Tim Waugh 0f0b3f
         dstrcpy(cmd, choice->command);
Tim Waugh 0f0b3f
         return 1;
Tim Waugh 0f0b3f
     }