From 9811dd20491d71b86c6029003d05fb8022093320 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 20 Mar 2007 03:50:40 +0000 Subject: remove some bogus *p tests from charles longeau ok deraadt millert --- usr.bin/newsyslog/newsyslog.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.bin/newsyslog') 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 @@ -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); } -- cgit v1.2.3