New CUPS libraries return "none" as default printer instead of NULL.
This commit is contained in:
parent
f476a0fbdc
commit
228a2b3ae5
|
@ -125,6 +125,9 @@ CUPS_LoadPrinters(void) {
|
|||
|
||||
nrofdests = cupsGetPrinters(&printers);
|
||||
|
||||
if (def && !strcmp(def,"none")) /* CUPS has "none" for no default printer */
|
||||
def = NULL;
|
||||
|
||||
for (i=0;i<nrofdests;i++) {
|
||||
const char *ppd = cupsGetPPD(printers[i]);
|
||||
char *port,*devline;
|
||||
|
|
Loading…
Reference in New Issue