]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/testppd.c
Merge changes from CUPS 1.4svn-r8088, the real official 1.4b1!
[thirdparty/cups.git] / cups / testppd.c
index b16052ece75a576d5ba21be88b5a41794634f863..2583f3fd915867a764f9a5bb4060d510dce8520b 100644 (file)
@@ -724,7 +724,6 @@ main(int  argc,                             /* I - Number of command-line arguments */
     else
     {
       int              j, k;           /* Looping vars */
-      ppd_attr_t       *attr;          /* Current attribute */
       ppd_group_t      *group;         /* Option group */
       ppd_option_t     *option;        /* Option */
       ppd_coption_t    *coption;       /* Custom option */
@@ -750,6 +749,14 @@ main(int  argc,                            /* I - Number of command-line arguments */
 
       ppdLocalize(ppd);
 
+      if (argc > 3)
+      {
+        text = ppdLocalizeIPPReason(ppd, argv[3], NULL, buffer, sizeof(buffer));
+       printf("ppdLocalizeIPPReason(%s)=%s\n", argv[3],
+              text ? text : "(null)");
+       return (text == NULL);
+      }
+
       for (i = ppd->num_groups, group = ppd->groups;
           i > 0;
           i --, group ++)