diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index 430368f6f1c..2d20dec2e0c 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.53 2002/09/17 20:44:38 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.54 2002/09/19 15:27:31 millert Exp $ */ /* * Copyright (c) 1999, 2002 Todd C. Miller <Todd.Miller@courtesan.com> @@ -86,7 +86,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.53 2002/09/17 20:44:38 millert Exp $"; +static const char rcsid[] = "$OpenBSD: newsyslog.c,v 1.54 2002/09/19 15:27:31 millert Exp $"; #endif /* not lint */ #ifndef CONF @@ -477,7 +477,7 @@ parse_file(int *nentries) *nentries = 0; while (fgets(line, sizeof(line), f)) { tmp = sob(line); - if (*tmp == '\n' || *tmp == '#') + if (*tmp == '\0' || *tmp == '#') continue; errline = strdup(tmp); if (errline == NULL) |