Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/skeyinit Initialize pw to placate -Wuninitialized fo...



details:   https://anonhg.NetBSD.org/src/rev/4edaa5f4b198
branches:  trunk
changeset: 584484:4edaa5f4b198
user:      he <he%NetBSD.org@localhost>
date:      Tue Sep 20 15:48:17 2005 +0000

description:
Initialize pw to placate -Wuninitialized for sh3.

diffstat:

 usr.bin/skeyinit/skeyinit.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r d940f24be0a6 -r 4edaa5f4b198 usr.bin/skeyinit/skeyinit.c
--- a/usr.bin/skeyinit/skeyinit.c       Tue Sep 20 13:22:04 2005 +0000
+++ b/usr.bin/skeyinit/skeyinit.c       Tue Sep 20 15:48:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skeyinit.c,v 1.26 2005/09/19 22:45:27 wiz Exp $        */
+/*     $NetBSD: skeyinit.c,v 1.27 2005/09/20 15:48:17 he Exp $ */
 
 /* S/KEY v1.1b (skeyinit.c)
  *
@@ -17,7 +17,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: skeyinit.c,v 1.26 2005/09/19 22:45:27 wiz Exp $");
+__RCSID("$NetBSD: skeyinit.c,v 1.27 2005/09/20 15:48:17 he Exp $");
 #endif
 
 #include <sys/param.h>
@@ -58,6 +58,8 @@
        struct  tm *tm;
        int c;
 
+       pw = NULL;      /* XXX gcc -Wuninitialized [sh3] */
+
        /*
         * Make sure using stdin/stdout/stderr is safe
         * after opening any file.



Home | Main Index | Thread Index | Old Index