]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/dest.c
The `cupsGetNamedDest` function did not use the local default printer
[thirdparty/cups.git] / cups / dest.c
index 09bb76b73f1f2e1a099ac330560e0bb455692cfb..2bc4685c9c1dceff8d275f3ad6ba1025336e6fad 100644 (file)
@@ -2261,7 +2261,7 @@ cupsGetNamedDest(http_t     *http,        /* I - Connection to server or @code CUPS_HTT
       dest_name = cups_get_default(filename, defname, sizeof(defname), &instance);
     }
 
-    if (!name)
+    if (!dest_name)
     {
      /*
       * Still not there?  Try the system lpoptions file...