]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a compiler warning - we weren't referencing the right value when reporting
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 31 Aug 2011 04:57:55 +0000 (04:57 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 31 Aug 2011 04:57:55 +0000 (04:57 +0000)
a filter problem.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9947 7a7537e8-13f0-0310-91df-b6672ffda945

systemv/cupstestppd.c

index addc9d3f45220ca6fe46026171dc3df1f393f96b..7786bf1dd3374211475b076384dfb872b3edbae6 100644 (file)
@@ -2320,7 +2320,6 @@ check_filters(ppd_file_t *ppd,            /* I - PPD file */
              int        verbose,       /* I - Verbosity level */
              int        warn)          /* I - Warnings only? */
 {
-  int          i;                      /* Looping var */
   ppd_attr_t   *attr;                  /* PPD attribute */
   const char   *ptr;                   /* Pointer into string */
   char         super[16],              /* Super-type for filter */
@@ -2368,7 +2367,7 @@ check_filters(ppd_file_t *ppd,            /* I - PPD file */
       if (verbose >= 0)
        _cupsLangPrintf(stdout,
                        _("      %s  Bad cupsFilter value \"%s\"."),
-                       prefix, ppd->filters[i]);
+                       prefix, attr->value);
 
       if (!warn)
         errors ++;
@@ -2454,7 +2453,7 @@ check_filters(ppd_file_t *ppd,            /* I - PPD file */
       if (verbose >= 0)
        _cupsLangPrintf(stdout,
                        _("      %s  Bad cupsFilter2 value \"%s\"."),
-                       prefix, ppd->filters[i]);
+                       prefix, attr->value);
 
       if (!warn)
         errors ++;