summaryrefslogtreecommitdiff
path: root/usr.bin/newsyslog/newsyslog.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:50:40 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-03-20 03:50:40 +0000
commit9811dd20491d71b86c6029003d05fb8022093320 (patch)
treeb18ba95828e2e0cefe707d3ec9905bd2c4a5ca9c /usr.bin/newsyslog/newsyslog.c
parent3062cd8b277b2f91c96ada9b87815608c0fa2853 (diff)
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.bin/newsyslog/newsyslog.c')
-rw-r--r--usr.bin/newsyslog/newsyslog.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c
index 7980241749f..64f3f848595 100644
--- a/usr.bin/newsyslog/newsyslog.c
+++ b/usr.bin/newsyslog/newsyslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newsyslog.c,v 1.83 2006/12/11 20:50:54 deraadt Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.84 2007/03/20 03:50:39 tedu Exp $ */
/*
* Copyright (c) 1999, 2002, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -72,7 +72,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.83 2006/12/11 20:50:54 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.84 2007/03/20 03:50:39 tedu Exp $";
#endif /* not lint */
#ifndef CONF
@@ -938,7 +938,9 @@ age_old_log(struct conf_entry *ent)
char *
sob(char *p)
{
- while (p && *p && isspace(*p))
+ if (p == NULL)
+ return(p);
+ while (isspace(*p))
p++;
return (p);
}