summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vuntz@novell.com>2008-11-20 13:29:13 +0100
committerVincent Untz <vuntz@novell.com>2008-11-20 13:29:13 +0100
commit165a2528be374363b1d47336140fcc8e823f7c56 (patch)
tree617c5cc365a33ba401d2727a7ea4b35d9a19e18d
parent32806f03fc3ab30323b7fad3356c3682d3fb55dc (diff)
Accept an empty string array for deleting an option.
(instead of just accepting NULL)
-rw-r--r--src/cups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cups.c b/src/cups.c
index e3bf390..f72810c 100644
--- a/src/cups.c
+++ b/src/cups.c
@@ -973,7 +973,7 @@ cph_cups_printer_class_set_option_default (CphCups *cups,
option_name = g_strdup_printf ("%s-default", option);
/* delete default value for option */
- if (!values) {
+ if (len == 0) {
retval = _cph_cups_send_new_printer_class_request (
cups,
printer_name,