Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/chpass Ensure yflag is initialized before trying to ...
details: https://anonhg.NetBSD.org/src/rev/d2fb3e653924
branches: trunk
changeset: 581478:d2fb3e653924
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 01:41:38 2005 +0000
description:
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 104e7eae4362 -r d2fb3e653924 usr.bin/chpass/chpass.c
--- a/usr.bin/chpass/chpass.c Thu Jun 02 01:35:57 2005 +0000
+++ b/usr.bin/chpass/chpass.c Thu Jun 02 01:41:38 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.30 2005/06/02 01:41:38 lukem 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.30 2005/06/02 01:41:38 lukem 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