From ca53d12a6ed9cf8dbf38cc2f7b8131ba4ea25b1d Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 7 Jun 1996 16:27:28 +0000 Subject: Fix uninitialized variable that caused a core dump if /etc/newsyslog.conf was empty. Closes PR bin/1300. Found by: Brian Tao --- usr.sbin/newsyslog/newsyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/newsyslog') 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; -- cgit v1.1