diff options
author | bde <bde@FreeBSD.org> | 1998-09-12 14:46:15 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-09-12 14:46:15 +0000 |
commit | bf0874491d38e723ab03ee03a1164f40412eeea1 (patch) | |
tree | c9d4286246a57b83abafa674ae39faa69f99d458 /sys | |
parent | 9fc99cb50ca59d6563eb40b457f1fa853401c97d (diff) | |
download | FreeBSD-src-bf0874491d38e723ab03ee03a1164f40412eeea1.zip FreeBSD-src-bf0874491d38e723ab03ee03a1164f40412eeea1.tar.gz |
Don't dereference an uninitialized pointer in dead code. The dead
code gets executed if it is compiled without optimization.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/ffs_balloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_balloc.c b/sys/ufs/ffs/ffs_balloc.c index cf253b7..6153766 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 <sys/param.h> @@ -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; |