Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.sbin/config Pull up revision 1.98 (requested by lukem...



details:   https://anonhg.NetBSD.org/src/rev/2b441de61a98
branches:  netbsd-3
changeset: 576232:2b441de61a98
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jun 15 05:38:24 2005 +0000

description:
Pull up revision 1.98 (requested by lukem in ticket #412):
Don't try to use an uninitialized variable.
Detected with gcc -Wuninitialized.

diffstat:

 usr.sbin/config/main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r e80dad6df8f9 -r 2b441de61a98 usr.sbin/config/main.c
--- a/usr.sbin/config/main.c    Wed Jun 15 05:34:16 2005 +0000
+++ b/usr.sbin/config/main.c    Wed Jun 15 05:38:24 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.97 2004/11/05 18:07:27 mason Exp $  */
+/*     $NetBSD: main.c,v 1.97.2.1 2005/06/15 05:38:24 snj Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -1336,6 +1336,7 @@
        if (!cfg)
                return;
 
+       missingeol = 0;
        if (fstat(fileno(cf), &st) == -1)
                return;
        if (cfgtime < st.st_mtime)



Home | Main Index | Thread Index | Old Index