Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/faithd initialize sentinel.next so that config_list...



details:   https://anonhg.NetBSD.org/src/rev/960d11842e3c
branches:  trunk
changeset: 551254:960d11842e3c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 02 22:56:11 2003 +0000

description:
initialize sentinel.next so that config_list does not get garbage

diffstat:

 usr.sbin/faithd/prefix.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 2bec3fbc462e -r 960d11842e3c usr.sbin/faithd/prefix.c
--- a/usr.sbin/faithd/prefix.c  Tue Sep 02 22:48:30 2003 +0000
+++ b/usr.sbin/faithd/prefix.c  Tue Sep 02 22:56:11 2003 +0000
@@ -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 @@
                return -1;
 
        p = &sentinel;
+       sentinel.next = NULL;
        while (fgets(buf, sizeof(buf), fp) != NULL) {
                conf = config_load1(buf);
                if (conf) {



Home | Main Index | Thread Index | Old Index