mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
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>
This commit is contained in:
parent
b392d65041
commit
d442994ef5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16174
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user