summaryrefslogtreecommitdiff
path: root/scheduler/testlpd.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-05-19 21:22:35 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-05-19 21:22:35 +0000
commit3bb59731595c4db5427812e41856930bbd012d82 (patch)
tree52543b9e6dd28fb1766d3ccc89bc55e45808c7ea /scheduler/testlpd.c
parentb81c7a32729459e9327c6c1d29ee3f6f4cf03208 (diff)
downloadcups-3bb59731595c4db5427812e41856930bbd012d82.tar.gz
Fix compiler warnings.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12644 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/testlpd.c')
-rw-r--r--scheduler/testlpd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scheduler/testlpd.c b/scheduler/testlpd.c
index 67019c375..ecfdb197b 100644
--- a/scheduler/testlpd.c
+++ b/scheduler/testlpd.c
@@ -3,7 +3,7 @@
*
* cups-lpd test program for CUPS.
*
- * Copyright 2007-2014 by Apple Inc.
+ * Copyright 2007-2015 by Apple Inc.
* Copyright 2006 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
@@ -447,7 +447,7 @@ status_long(int outfd, /* I - Command file descriptor */
* Send the "send short status" command...
*/
- if (args)
+ if (args[0])
snprintf(command, sizeof(command), "\004%s %s\n", dest, args[0]);
else
snprintf(command, sizeof(command), "\004%s\n", dest);
@@ -490,7 +490,7 @@ status_short(int outfd, /* I - Command file descriptor */
* Send the "send short status" command...
*/
- if (args)
+ if (args[0])
snprintf(command, sizeof(command), "\003%s %s\n", dest, args[0]);
else
snprintf(command, sizeof(command), "\003%s\n", dest);