summaryrefslogtreecommitdiff
path: root/cups/dest.c
diff options
context:
space:
mode:
authorMichael Sweet <michael.r.sweet@gmail.com>2017-07-19 08:15:08 -0400
committerMichael Sweet <michael.r.sweet@gmail.com>2017-07-19 08:15:08 -0400
commitc536b6c583abd9ea1b750f15e887b313ed7ad951 (patch)
tree0f089f8abd469ada968efc73091483b4c5883382 /cups/dest.c
parent03d3907a330ad5d12e218239e147b1dfb6ea7030 (diff)
downloadcups-c536b6c583abd9ea1b750f15e887b313ed7ad951.tar.gz
The `cupsGetNamedDest` function did not use the local default printer
(rdar://33228500)
Diffstat (limited to 'cups/dest.c')
-rw-r--r--cups/dest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cups/dest.c b/cups/dest.c
index 09bb76b73..2bc4685c9 100644
--- a/cups/dest.c
+++ b/cups/dest.c
@@ -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...