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