diff -up cups-2.2.4/cups/dest.c.printer-lpdest cups-2.2.4/cups/dest.c
--- cups-2.2.4/cups/dest.c.printer-lpdest 2018-01-09 12:36:28.625063928 +0100
+++ cups-2.2.4/cups/dest.c 2018-01-09 12:41:08.057940668 +0100
@@ -2687,7 +2687,7 @@ cupsGetNamedDest(http_t *http, /* I
dest_name = cups_get_default(filename, defname, sizeof(defname), &instance);
}
- if (!name)
+ if (!dest_name)
{
/*
* Still not there? Try the system lpoptions file...