summaryrefslogtreecommitdiff
path: root/monitor/tbcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/tbcp.c')
-rw-r--r--monitor/tbcp.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/monitor/tbcp.c b/monitor/tbcp.c
index 4170d493b..e369975bc 100644
--- a/monitor/tbcp.c
+++ b/monitor/tbcp.c
@@ -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...