]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
LanguageEncoding warning needs to be printed when language_encoding is
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 19 Feb 2003 17:38:20 +0000 (17:38 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 19 Feb 2003 17:38:20 +0000 (17:38 +0000)
NULL, not when it is not NULL (e.g. already specified... :)

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

systemv/cupstestppd.c

index c84d041d8e86615478e149130fb638309c8746e1..be72bfed50ab86ea645580dc972c39e1e07d3b94 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: cupstestppd.c,v 1.12 2003/02/19 16:09:29 mike Exp $"
+ * "$Id: cupstestppd.c,v 1.13 2003/02/19 17:38:20 mike Exp $"
  *
  *   PPD test program for the Common UNIX Printing System (CUPS).
  *
@@ -652,7 +652,7 @@ main(int  argc,                     /* I - Number of command-line arguments */
          puts("                REF: Page 42, section 5.2.");
        }
 
-        if (ppd->lang_encoding != NULL && ppdversion < 41)
+        if (!ppd->lang_encoding && ppdversion < 41)
        {
          puts("        WARN    LanguageEncoding required by PPD 4.3 spec.");
          puts("                REF: Pages 56-57, section 5.3.");
@@ -831,5 +831,5 @@ usage(void)
 
 
 /*
- * End of "$Id: cupstestppd.c,v 1.12 2003/02/19 16:09:29 mike Exp $".
+ * End of "$Id: cupstestppd.c,v 1.13 2003/02/19 17:38:20 mike Exp $".
  */