Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa make a gcc unitialized variable



details:   https://anonhg.NetBSD.org/src/rev/0c59f0789251
branches:  trunk
changeset: 791069:0c59f0789251
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 03 00:44:34 2013 +0000

description:
make a gcc unitialized variable

diffstat:

 sys/lib/libsa/minixfs3.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9b46c807462f -r 0c59f0789251 sys/lib/libsa/minixfs3.c
--- a/sys/lib/libsa/minixfs3.c  Sun Nov 03 00:01:43 2013 +0000
+++ b/sys/lib/libsa/minixfs3.c  Sun Nov 03 00:44:34 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: minixfs3.c,v 1.5 2013/06/23 07:28:36 dholland Exp $    */
+/*     $NetBSD: minixfs3.c,v 1.6 2013/11/03 00:44:34 christos Exp $    */
 
 /*-
  * Copyright (c) 2012
@@ -354,7 +354,7 @@
        struct mfs_sblock *fs = fp->f_fs;
        long off;
        block_t file_block;
-       block_t disk_block;
+       block_t disk_block = 0; /* XXX: gcc */
        size_t block_size;
        int rc;
 



Home | Main Index | Thread Index | Old Index