From 9164000766f7238f07ade4c5ce0de4e1cbf68aa8 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 12 Sep 1998 14:46:15 +0000 Subject: Don't dereference an uninitialized pointer in dead code. The dead code gets executed if it is compiled without optimization. --- sys/ufs/ffs/ffs_balloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c index cf253b72e6e4..61537665b734 100644 --- a/sys/ufs/ffs/ffs_balloc.c +++ b/sys/ufs/ffs/ffs_balloc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ffs_balloc.c 8.8 (Berkeley) 6/16/95 - * $Id: ffs_balloc.c,v 1.19 1998/02/06 12:14:14 eivind Exp $ + * $Id: ffs_balloc.c,v 1.20 1998/03/08 09:58:47 julian Exp $ */ #include @@ -72,7 +72,7 @@ ffs_balloc(ap) struct fs *fs; ufs_daddr_t nb; struct buf *bp, *nbp; - struct vnode *vp = ITOV(ip); + struct vnode *vp; struct indir indirs[NIADDR + 2]; ufs_daddr_t newb, *bap, pref; int deallocated, osize, nsize, num, i, error; -- cgit v1.3