initialize sentinel.next so that config_list does not get garbage
This commit is contained in:
parent
a93d49837e
commit
9b81bd5614
@ -1,5 +1,5 @@
|
||||
/* $NetBSD: prefix.c,v 1.5 2002/09/08 01:41:13 itojun Exp $ */
|
||||
/* $KAME: prefix.c,v 1.12 2002/09/08 01:14:46 itojun Exp $ */
|
||||
/* $NetBSD: prefix.c,v 1.6 2003/09/02 22:56:11 itojun Exp $ */
|
||||
/* $KAME: prefix.c,v 1.13 2003/09/02 22:50:17 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2000 WIDE Project.
|
||||
@ -279,6 +279,7 @@ config_load(const char *configfile)
|
||||
return -1;
|
||||
|
||||
p = &sentinel;
|
||||
sentinel.next = NULL;
|
||||
while (fgets(buf, sizeof(buf), fp) != NULL) {
|
||||
conf = config_load1(buf);
|
||||
if (conf) {
|
||||
|
Loading…
Reference in New Issue
Block a user