From: Pranav Batra Date: Wed, 6 Jan 2021 22:34:22 +0000 (+0000) Subject: Ignore the APPrinterIconPath PPD attribute X-Git-Tag: v2.3.3op2~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bd989f2a2711a3791ab7de0cae55cd82b70a4f7;p=thirdparty%2Fcups.git Ignore the APPrinterIconPath PPD attribute The icon file is only used on macOS (in which case HAVE_APPLICATIONSERVICES_H is enabled). BUG=none TEST=cq Change-Id: I58931df5788ab1c9f76b4cb2a958c51dc084083b --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index e27b05bab4..58f85e8554 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -1916,8 +1916,10 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */ ppd_attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL)) cupsArrayAdd(pc->support_files, ppd_attr->value); +#ifdef HAVE_APPLICATIONSERVICES_H if ((ppd_attr = ppdFindAttr(ppd, "APPrinterIconPath", NULL)) != NULL) cupsArrayAdd(pc->support_files, ppd_attr->value); +#endif /* * Return the cache data...