Source-Changes-HG archive

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

[src/netbsd-3]: src/usr.bin/chpass Pull up revision 1.30 (requested by lukem ...



details:   https://anonhg.NetBSD.org/src/rev/21e9e4c0ee05
branches:  netbsd-3
changeset: 576225:21e9e4c0ee05
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Jun 15 05:10:35 2005 +0000

description:
Pull up revision 1.30 (requested by lukem in ticket #405):
Ensure yflag is initialized before trying to use it.
Detected with gcc -Wuninitialized.

diffstat:

 usr.bin/chpass/chpass.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0735692d0bac -r 21e9e4c0ee05 usr.bin/chpass/chpass.c
--- a/usr.bin/chpass/chpass.c   Tue Jun 14 21:45:02 2005 +0000
+++ b/usr.bin/chpass/chpass.c   Wed Jun 15 05:10:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chpass.c,v 1.29 2005/02/17 17:09:48 xtraeme Exp $      */
+/*     $NetBSD: chpass.c,v 1.29.2.1 2005/06/15 05:10:35 snj Exp $      */
 
 /*-
  * Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)chpass.c   8.4 (Berkeley) 4/2/94";
 #else 
-__RCSID("$NetBSD: chpass.c,v 1.29 2005/02/17 17:09:48 xtraeme Exp $");
+__RCSID("$NetBSD: chpass.c,v 1.29.2.1 2005/06/15 05:10:35 snj Exp $");
 #endif
 #endif /* not lint */
 
@@ -83,7 +83,7 @@
        struct passwd *pw, lpw, old_pw;
        int ch, dfd, pfd, tfd;
 #ifdef YP
-       int yflag;
+       int yflag = 0;
 #endif
        char *arg, *username = NULL;
 



Home | Main Index | Thread Index | Old Index