Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Avoid uninitialized variable error in some cases...



details:   https://anonhg.NetBSD.org/src/rev/3bda469857f2
branches:  trunk
changeset: 334814:3bda469857f2
user:      justin <justin%NetBSD.org@localhost>
date:      Mon Dec 08 00:16:44 2014 +0000

description:
Avoid uninitialized variable error in some cases with gcc

diffstat:

 sys/ufs/lfs/ulfs_quota2.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e82c49670019 -r 3bda469857f2 sys/ufs/lfs/ulfs_quota2.c
--- a/sys/ufs/lfs/ulfs_quota2.c Mon Dec 08 00:12:03 2014 +0000
+++ b/sys/ufs/lfs/ulfs_quota2.c Mon Dec 08 00:16:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ulfs_quota2.c,v 1.16 2014/06/28 22:27:51 dholland Exp $        */
+/*     $NetBSD: ulfs_quota2.c,v 1.17 2014/12/08 00:16:44 justin Exp $  */
 /*  from NetBSD: ufs_quota2.c,v 1.35 2012/09/27 07:47:56 bouyer Exp  */
 /*  from NetBSD: ffs_quota2.c,v 1.4 2011/06/12 03:36:00 rmind Exp  */
 
@@ -29,7 +29,7 @@
   */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulfs_quota2.c,v 1.16 2014/06/28 22:27:51 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulfs_quota2.c,v 1.17 2014/12/08 00:16:44 justin Exp $");
 
 #include <sys/buf.h>
 #include <sys/param.h>
@@ -1274,7 +1274,7 @@
        struct q2cursor_state state;
        struct quota2_entry default_q2e;
        int idtype;
-       int quota2_hash_size;
+       int quota2_hash_size = 0; /* XXXuninit */
 
        /*
         * Convert and validate the cursor.



Home | Main Index | Thread Index | Old Index