Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs Quiesce CC ('blkno' may be used uninitialized in...



details:   https://anonhg.NetBSD.org/src/rev/4abf1024779f
branches:  trunk
changeset: 762570:4abf1024779f
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Feb 23 08:53:21 2011 +0000

description:
Quiesce CC ('blkno' may be used uninitialized in this function).

diffstat:

 sys/ufs/ffs/ffs_snapshot.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r c1d9ea935a3a -r 4abf1024779f sys/ufs/ffs/ffs_snapshot.c
--- a/sys/ufs/ffs/ffs_snapshot.c        Wed Feb 23 08:52:16 2011 +0000
+++ b/sys/ufs/ffs/ffs_snapshot.c        Wed Feb 23 08:53:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_snapshot.c,v 1.107 2011/02/22 20:25:54 he Exp $    */
+/*     $NetBSD: ffs_snapshot.c,v 1.108 2011/02/23 08:53:21 hannken Exp $       */
 
 /*
  * Copyright 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.107 2011/02/22 20:25:54 he Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.108 2011/02/23 08:53:21 hannken Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1826,6 +1826,8 @@
        uint32_t gen;
        int lower, upper, mid, snapshot_locked = 0, error = 0;
 
+       blkno = 0; /* XXX: GCC */
+
        /*
         * Check for valid snapshots.
         */



Home | Main Index | Thread Index | Old Index