Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/e458896ed372
branches:  trunk
changeset: 581479:e458896ed372
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 01:42:11 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 usr.bin/chpass/edit.c        |  6 +++---
 usr.bin/extattr/getextattr.c |  4 +++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r d2fb3e653924 -r e458896ed372 usr.bin/chpass/edit.c
--- a/usr.bin/chpass/edit.c     Thu Jun 02 01:41:38 2005 +0000
+++ b/usr.bin/chpass/edit.c     Thu Jun 02 01:42:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: edit.c,v 1.18 2005/02/17 17:09:48 xtraeme Exp $        */
+/*     $NetBSD: edit.c,v 1.19 2005/06/02 01:42:11 lukem Exp $  */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)edit.c     8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: edit.c,v 1.18 2005/02/17 17:09:48 xtraeme Exp $");
+__RCSID("$NetBSD: edit.c,v 1.19 2005/06/02 01:42:11 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -147,7 +147,7 @@
        ENTRY *ep;
        char *p;
        struct stat sb;
-       FILE *fp;
+       FILE *fp = NULL;
        int len, fd;
        static char buf[LINE_MAX];
 
diff -r d2fb3e653924 -r e458896ed372 usr.bin/extattr/getextattr.c
--- a/usr.bin/extattr/getextattr.c      Thu Jun 02 01:41:38 2005 +0000
+++ b/usr.bin/extattr/getextattr.c      Thu Jun 02 01:42:11 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getextattr.c,v 1.1 2005/01/02 17:55:48 thorpej Exp $   */
+/*     $NetBSD: getextattr.c,v 1.2 2005/06/02 01:43:16 lukem Exp $     */
 
 /*-
  * Copyright (c) 2002, 2003 Networks Associates Technology, Inc.
@@ -120,6 +120,8 @@
        int     flag_string = 0;
        int     flag_hex = 0;
 
+       options = NULL;
+       minargc = 0;
        visbuflen = buflen = 0;
        visbuf = buf = NULL;
 



Home | Main Index | Thread Index | Old Index