Source-Changes-HG archive

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

[src/trunk]: src/sbin appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/0a67dd473d14
branches:  trunk
changeset: 581471:0a67dd473d14
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 00:48:48 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 sbin/dump/tape.c          |  5 +++--
 sbin/newfs_lfs/make_lfs.c |  6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 456a86278812 -r 0a67dd473d14 sbin/dump/tape.c
--- a/sbin/dump/tape.c  Thu Jun 02 00:38:41 2005 +0000
+++ b/sbin/dump/tape.c  Thu Jun 02 00:48:48 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tape.c,v 1.44 2004/08/08 09:46:16 lukem Exp $  */
+/*     $NetBSD: tape.c,v 1.45 2005/06/02 00:48:48 lukem Exp $  */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)tape.c     8.4 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: tape.c,v 1.44 2004/08/08 09:46:16 lukem Exp $");
+__RCSID("$NetBSD: tape.c,v 1.45 2005/06/02 00:48:48 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -815,6 +815,7 @@
        int nread, nextslave, size, wrote, eot_count, werror;
        sigset_t nsigset, osigset;
 
+       wrote = 0;
        /*
         * Need our own seek pointer.
         */
diff -r 456a86278812 -r 0a67dd473d14 sbin/newfs_lfs/make_lfs.c
--- a/sbin/newfs_lfs/make_lfs.c Thu Jun 02 00:38:41 2005 +0000
+++ b/sbin/newfs_lfs/make_lfs.c Thu Jun 02 00:48:48 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make_lfs.c,v 1.3 2005/04/12 01:06:39 perseant Exp $    */
+/*     $NetBSD: make_lfs.c,v 1.4 2005/06/02 00:54:42 lukem Exp $       */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
 #if 0
 static char sccsid[] = "@(#)lfs.c      8.5 (Berkeley) 5/24/95";
 #else
-__RCSID("$NetBSD: make_lfs.c,v 1.3 2005/04/12 01:06:39 perseant Exp $");
+__RCSID("$NetBSD: make_lfs.c,v 1.4 2005/06/02 00:54:42 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -325,7 +325,7 @@
        struct ufs1_dinode *dip;        /* Pointer to a disk inode */
        CLEANERINFO *cip;       /* Segment cleaner information table */
        IFILE *ip;              /* Pointer to array of ifile structures */
-       IFILE_V1 *ip_v1;
+       IFILE_V1 *ip_v1 = NULL;
        struct lfs *fs;         /* Superblock */
        SEGUSE *segp;           /* Segment usage table */
        daddr_t sb_addr;        /* Address of superblocks */



Home | Main Index | Thread Index | Old Index