diff options
author | alex <alex@FreeBSD.org> | 1996-06-07 16:27:28 +0000 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 1996-06-07 16:27:28 +0000 |
commit | ca53d12a6ed9cf8dbf38cc2f7b8131ba4ea25b1d (patch) | |
tree | 1a08477f3ebc0760af9a8ebd214a6f6f6649ae52 /usr.sbin | |
parent | 1009f7606b2b8435e39f4b2abbaee83821e48b27 (diff) | |
download | FreeBSD-src-ca53d12a6ed9cf8dbf38cc2f7b8131ba4ea25b1d.zip FreeBSD-src-ca53d12a6ed9cf8dbf38cc2f7b8131ba4ea25b1d.tar.gz |
Fix uninitialized variable that caused a core dump if /etc/newsyslog.conf
was empty. Closes PR bin/1300.
Found by: Brian Tao <taob@io.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/newsyslog/newsyslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c index a073d51..d1dc5f2 100644 --- a/usr.sbin/newsyslog/newsyslog.c +++ b/usr.sbin/newsyslog/newsyslog.c @@ -29,7 +29,7 @@ provided "as is" without express or implied warranty. */ #ifndef lint -static char rcsid[] = "$Id: newsyslog.c,v 1.2 1996/01/09 08:40:08 graichen Exp $"; +static char rcsid[] = "$Id: newsyslog.c,v 1.3 1996/01/16 10:32:04 graichen Exp $"; #endif /* not lint */ #ifndef CONF @@ -237,7 +237,7 @@ struct conf_entry *parse_file() char line[BUFSIZ], *parse, *q; char *errline, *group; struct conf_entry *first = NULL; - struct conf_entry *working; + struct conf_entry *working = NULL; struct passwd *pass; struct group *grp; |