]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Remove Unicode char from header.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 19 Oct 2012 17:44:02 +0000 (17:44 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 19 Oct 2012 17:44:02 +0000 (17:44 +0000)
Don't error out on empty print files.

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

cups/dest-job.c
monitor/tbcp.c

index f0792c728fa7a1e4070b56a35fd65690061f9e0b..b094b10759305073e165cc214cd73187db550926 100644 (file)
@@ -15,7 +15,7 @@
  *
  * Contents:
  *
- *   cupsCancelDestJob()      - Cancel a job on a destination.
+ *   cupsCancelDestJob()      - Cancel a job on a destination.
  *   cupsCloseDestJob()       - Close a job and start printing.
  *   cupsCreateDestJob()      - Create a job on a destination.
  *   cupsFinishDestDocument() - Finish the current document.
index 250a00302d0216e7686ab469735de69bdf0359c5..9ed1e00e777482f1311467c1af58ac767c59d7f4 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   TBCP port monitor for CUPS.
  *
- *   Copyright 2007-2010 by Apple Inc.
+ *   Copyright 2007-2012 by Apple Inc.
  *   Copyright 1993-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -93,11 +93,8 @@ main(int  argc,                              /* I - Number of command-line args */
     */
 
     linelen = sizeof(line);
-    if (psgets(line, &linelen, fp) == NULL)
-    {
-      fputs("ERROR: Empty print file!\n", stderr);
-      return (1);
-    }
+    if (!psgets(line, &linelen, fp))
+      break;
 
    /*
     * Handle leading PJL fun...