rlescak / rpms / cups

Forked from rpms/cups 2 years ago
Clone
d5844a1
diff -up cups-1.4.3/cups/dest.c.str3503 cups-1.4.3/cups/dest.c
d5844a1
--- cups-1.4.3/cups/dest.c.str3503	2010-03-31 13:31:42.000000000 +0200
d5844a1
+++ cups-1.4.3/cups/dest.c	2010-03-31 13:32:52.000000000 +0200
d5844a1
@@ -553,7 +553,7 @@ cupsGetNamedDest(http_t     *http,	/* I 
a8d3708
 
a8d3708
   if (!cups_get_sdests(http, op, name, 0, &dest))
a8d3708
   {
d5844a1
-    if (op == CUPS_GET_DEFAULT || name)
5bcbe0d
+    if (op == CUPS_GET_DEFAULT || (name && !set_as_default))
a8d3708
       return (NULL);
a8d3708
 
a8d3708
    /*