From 9b81bd56145a216c97e1da39bd3f17d47db855ac Mon Sep 17 00:00:00 2001 From: itojun Date: Tue, 2 Sep 2003 22:56:11 +0000 Subject: [PATCH] initialize sentinel.next so that config_list does not get garbage --- usr.sbin/faithd/prefix.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/faithd/prefix.c b/usr.sbin/faithd/prefix.c index 3dd7f413be94..465b4091dbc0 100644 --- a/usr.sbin/faithd/prefix.c +++ b/usr.sbin/faithd/prefix.c @@ -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) {