New CUPS libraries return "none" as default printer instead of NULL.

This commit is contained in:
Marcus Meissner 2002-09-12 00:52:59 +00:00 committed by Alexandre Julliard
parent f476a0fbdc
commit 228a2b3ae5

View file

@ -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;