Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pwd_mkdb appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/a4751fbd6673
branches:  trunk
changeset: 581512:a4751fbd6673
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 09:18:14 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 usr.sbin/pwd_mkdb/pwd_mkdb.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 140ced038967 -r a4751fbd6673 usr.sbin/pwd_mkdb/pwd_mkdb.c
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c      Thu Jun 02 09:13:06 2005 +0000
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c      Thu Jun 02 09:18:14 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pwd_mkdb.c,v 1.29 2004/06/20 22:20:18 jmc Exp $        */
+/*     $NetBSD: pwd_mkdb.c,v 1.30 2005/06/02 09:18:14 lukem Exp $      */
 
 /*
  * Copyright (c) 1991, 1993, 1994
@@ -65,7 +65,7 @@
 Copyright (c) 1991, 1993, 1994\n\
        The Regents of the University of California.  All rights reserved.\n");
 __SCCSID("from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94");
-__RCSID("$NetBSD: pwd_mkdb.c,v 1.29 2004/06/20 22:20:18 jmc Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.30 2005/06/02 09:18:14 lukem Exp $");
 #endif /* not lint */
 
 #if HAVE_NBTOOL_CONFIG_H
@@ -159,6 +159,9 @@
        username = NULL;
        hasyp = 0;
        secureonly = 0;
+       found = 0;
+       newuser = 0;
+       dp = NULL;
 
        while ((ch = getopt(argc, argv, "BLd:psu:v")) != -1)
                switch (ch) {
@@ -283,7 +286,6 @@
        if (username != NULL) {
                uid_dbflg = 0;
                dbflg = 0;
-               found = 0;
 
                /*
                 * Determine if this is a new entry.



Home | Main Index | Thread Index | Old Index