]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: Use wildcard tag search in the PPD generator
authorJonathan Strine <33943447+jstrine@users.noreply.github.com>
Mon, 12 Jul 2021 22:18:32 +0000 (18:18 -0400)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 17 Aug 2021 10:52:33 +0000 (12:52 +0200)
(cherry picked from commit 640ee0757d1b4ff7fc95b3e108c00f2c916ddda5)

cupsfilters/ppdgenerator.c

index 7b37a9e7444761e7031bbee3a10d1571cc637462..05f1da83369efae3564557b730e5ca36e03695fd 100644 (file)
@@ -2578,13 +2578,13 @@ ppdCreateFromIPP2(char         *buffer,          /* I - Filename buffer */
   */
 
   if ((attr = ippFindAttribute(ippGetCollection(defattr, 0), "media-type",
-                              IPP_TAG_KEYWORD)) != NULL)
+                              IPP_TAG_ZERO)) != NULL)
     pwg_ppdize_name(ippGetString(attr, 0, NULL), ppdname, sizeof(ppdname));
   else
     strlcpy(ppdname, "Unknown", sizeof(ppdname));
 
   if ((attr = ippFindAttribute(response, "media-type-supported",
-                              IPP_TAG_KEYWORD)) != NULL &&
+                              IPP_TAG_ZERO)) != NULL &&
       (count = ippGetCount(attr)) > 1) {
     static const char * const media_types[][2] =
     {                                  /* "media-type" strings */