5c16b2f
diff -up cups-1.4rc1/cups/dest.c.str3285 cups-1.4rc1/cups/dest.c
5c16b2f
--- cups-1.4rc1/cups/dest.c.str3285	2009-08-10 11:32:08.397714492 +0100
5c16b2f
+++ cups-1.4rc1/cups/dest.c	2009-08-10 11:32:14.143839210 +0100
5c16b2f
@@ -549,7 +549,7 @@ cupsGetNamedDest(http_t     *http,	/* I 
5c16b2f
 
5c16b2f
   if (!cups_get_sdests(http, op, name, 0, &dest))
5c16b2f
   {
5c16b2f
-    if (op == CUPS_GET_DEFAULT)
5c16b2f
+    if (op == CUPS_GET_DEFAULT || name != NULL)
5c16b2f
       return (NULL);
5c16b2f
 
5c16b2f
    /*
5c16b2f
@@ -557,7 +557,7 @@ cupsGetNamedDest(http_t     *http,	/* I 
5c16b2f
     * configuration file does not exist.  Find out the real default.
5c16b2f
     */
5c16b2f
 
5c16b2f
-    if (!cups_get_sdests(http, CUPS_GET_DEFAULT, name, 0, &dest))
5c16b2f
+    if (!cups_get_sdests(http, CUPS_GET_DEFAULT, NULL, 0, &dest))
5c16b2f
       return (NULL);
5c16b2f
   }
5c16b2f