]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Allow lines consisting of all whitespace...
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Feb 2003 20:25:04 +0000 (20:25 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 14 Feb 2003 20:25:04 +0000 (20:25 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@3365 7a7537e8-13f0-0310-91df-b6672ffda945

cups/ppd.c

index 6b48e35912933edda8c613eb01b15df81b2cf69e..279ee233e1e48bcca67f630b973a54d96c2826a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ppd.c,v 1.87 2003/02/14 20:12:53 mike Exp $"
+ * "$Id: ppd.c,v 1.88 2003/02/14 20:25:04 mike Exp $"
  *
  *   PPD file routines for the Common UNIX Printing System (CUPS).
  *
@@ -2558,8 +2558,21 @@ ppd_read(FILE *fp,                       /* I - File to read from */
 
     if (line[0] != '*')                        /* All lines start with an asterisk */
     {
-      ppd_status = PPD_MISSING_ASTERISK;
-      return (0);
+     /*
+      * Allow lines consisting of just whitespace...
+      */
+
+      for (lineptr = line; *lineptr; lineptr ++)
+        if (!isspace(*lineptr))
+         break;
+
+      if (*lineptr)
+      {
+        ppd_status = PPD_MISSING_ASTERISK;
+        return (0);
+      }
+      else
+        continue;
     }
 
    /*
@@ -2680,5 +2693,5 @@ ppd_read(FILE *fp,                        /* I - File to read from */
 
 
 /*
- * End of "$Id: ppd.c,v 1.87 2003/02/14 20:12:53 mike Exp $".
+ * End of "$Id: ppd.c,v 1.88 2003/02/14 20:25:04 mike Exp $".
  */