From 3bd989f2a2711a3791ab7de0cae55cd82b70a4f7 Mon Sep 17 00:00:00 2001 From: Pranav Batra Date: Wed, 6 Jan 2021 22:34:22 +0000 Subject: [PATCH] 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 --- cups/ppd-cache.c | 2 ++ 1 file changed, 2 insertions(+) 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... -- 2.47.2