if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL)
dest = dests;
+ if (dest == NULL)
+ _cupsLangPuts(stderr, _("lpoptions: No printers!?!\n"));
+
for (j = 0; j < dest->num_options; j ++)
if (cupsGetOption(dest->options[j].name, num_options, options) == NULL)
num_options = cupsAddOption(dest->options[j].name,
if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) == NULL)
dest = dests;
+ if (dest == NULL)
+ _cupsLangPuts(stderr, _("lpoptions: No printers!?!\n"));
+
for (j = 0; j < dest->num_options; j ++)
if (cupsGetOption(dest->options[j].name, num_options, options) == NULL)
num_options = cupsAddOption(dest->options[j].name,