Module Name: src Committed By: hannken Date: Wed Feb 23 08:53:22 UTC 2011
Modified Files: src/sys/ufs/ffs: ffs_snapshot.c Log Message: Quiesce CC ('blkno' may be used uninitialized in this function). To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/sys/ufs/ffs/ffs_snapshot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/ffs/ffs_snapshot.c diff -u src/sys/ufs/ffs/ffs_snapshot.c:1.107 src/sys/ufs/ffs/ffs_snapshot.c:1.108 --- src/sys/ufs/ffs/ffs_snapshot.c:1.107 Tue Feb 22 20:25:54 2011 +++ src/sys/ufs/ffs/ffs_snapshot.c Wed Feb 23 08:53:21 2011 @@ -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. */