Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/installboot Initialize a local variable (bbinfop) t...



details:   https://anonhg.NetBSD.org/src/rev/e7433d94a308
branches:  trunk
changeset: 581854:e7433d94a308
user:      he <he%NetBSD.org@localhost>
date:      Tue Jun 07 13:49:31 2005 +0000

description:
Initialize a local variable (bbinfop) to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.

diffstat:

 usr.sbin/installboot/bbinfo.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 52886a29fa0b -r e7433d94a308 usr.sbin/installboot/bbinfo.c
--- a/usr.sbin/installboot/bbinfo.c     Tue Jun 07 13:45:11 2005 +0000
+++ b/usr.sbin/installboot/bbinfo.c     Tue Jun 07 13:49:31 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bbinfo.c,v 1.10 2005/06/05 19:08:28 chs Exp $ */
+/*     $NetBSD: bbinfo.c,v 1.11 2005/06/07 13:49:31 he Exp $ */
 
 /*-
  * Copyright (c) 1998, 2002 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(__lint)
-__RCSID("$NetBSD: bbinfo.c,v 1.10 2005/06/05 19:08:28 chs Exp $");
+__RCSID("$NetBSD: bbinfo.c,v 1.11 2005/06/07 13:49:31 he Exp $");
 #endif /* !__lint */
 
 #include <sys/param.h>
@@ -139,6 +139,7 @@
        assert(bbparams != NULL);
        assert((strlen(bbparams->magic) + 1) == 32);
 
+       bbinfop = NULL;         /* XXXGCC -Wuninitialized [sparc64] */
        retval = 0;
        blocks = NULL;
        if ((bb = malloc(bbparams->maxsize)) == NULL) {



Home | Main Index | Thread Index | Old Index