summaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-03-20 04:00:33 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-03-20 04:00:33 +0000
commitf358db4fa96515906a6f924dbeba42e426eae9cc (patch)
tree60d6f4c9684e4ee69d3c16c6eb278f7e7d39590a /usr.sbin/config
parent5efa0f0e0b4cfb776c527aae961a39413b8bd001 (diff)
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/config/cmd.c b/usr.sbin/config/cmd.c
index 2e9b60329f0..0b9c5d63b22 100644
--- a/usr.sbin/config/cmd.c
+++ b/usr.sbin/config/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.13 2004/06/08 20:59:28 mcbride Exp $ */
+/* $OpenBSD: cmd.c,v 1.14 2007/03/20 04:00:32 tedu Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -25,7 +25,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: cmd.c,v 1.13 2004/06/08 20:59:28 mcbride Exp $";
+static char rcsid[] = "$OpenBSD: cmd.c,v 1.14 2007/03/20 04:00:32 tedu Exp $";
#endif
#include <sys/types.h>
@@ -269,7 +269,7 @@ Xtimezone(cmd_t *cmd)
c = cmd->args;
while ((*c != '\0') && !isspace(*c))
c++;
- while ((*c != '\0') && isspace(*c))
+ while (isspace(*c))
c++;
if (strlen(c) != 0 && number(c, &num) == 0)
tz->tz_dsttime = num;