Source-Changes-HG archive

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

[src/trunk]: src/sbin/ping6 Add an initialization to appease -Wuninitialized.



details:   https://anonhg.NetBSD.org/src/rev/d74ee0b4ba39
branches:  trunk
changeset: 581831:d74ee0b4ba39
user:      he <he%NetBSD.org@localhost>
date:      Tue Jun 07 09:10:33 2005 +0000

description:
Add an initialization to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while building for it).

Reviewed by lukem.

diffstat:

 sbin/ping6/ping6.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a008b5057aa8 -r d74ee0b4ba39 sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Tue Jun 07 09:08:07 2005 +0000
+++ b/sbin/ping6/ping6.c        Tue Jun 07 09:10:33 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping6.c,v 1.63 2005/06/02 01:35:57 lukem Exp $ */
+/*     $NetBSD: ping6.c,v 1.64 2005/06/07 09:10:33 he Exp $    */
 /*     $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */
 
 /*
@@ -77,7 +77,7 @@
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping6.c,v 1.63 2005/06/02 01:35:57 lukem Exp $");
+__RCSID("$NetBSD: ping6.c,v 1.64 2005/06/07 09:10:33 he Exp $");
 #endif
 #endif
 
@@ -1362,6 +1362,8 @@
        const u_char *comp;
        int l;
 
+       i = 0;          /* XXXGCC -Wuninitialized [sun2] */
+
        cp = *sp;
        *buf = '\0';
 



Home | Main Index | Thread Index | Old Index