diff options
author | pfg <pfg@FreeBSD.org> | 2016-04-25 00:51:13 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-04-25 00:51:13 +0000 |
commit | dce9e3914e6275f657335fa04e3ccf117d07edda (patch) | |
tree | 8acf6d656b3e4dce4d262d0ef9c3bed601c62269 /sys/fs | |
parent | 9346083f1b752b169a64b79bcc96d56676e6a4d4 (diff) | |
download | FreeBSD-src-dce9e3914e6275f657335fa04e3ccf117d07edda.zip FreeBSD-src-dce9e3914e6275f657335fa04e3ccf117d07edda.tar.gz |
MFC r297796:
ext2fs: replace 0 with NULL for pointers.
While here do late initialization of ebap, similar as was
done in UFS.
Found with devel/coccinelle.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 448b051..ee854bb 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -161,7 +161,7 @@ ext2_reallocblks(struct vop_reallocblks_args *ap) struct inode *ip; struct vnode *vp; struct buf *sbp, *ebp; - uint32_t *bap, *sbap, *ebap = 0; + uint32_t *bap, *sbap, *ebap; struct ext2mount *ump; struct cluster_save *buflist; struct indir start_ap[NIADDR + 1], end_ap[NIADDR + 1], *idp; @@ -231,6 +231,7 @@ ext2_reallocblks(struct vop_reallocblks_args *ap) /* * If the block range spans two block maps, get the second map. */ + ebap = NULL; if (end_lvl == 0 || (idp = &end_ap[end_lvl - 1])->in_off + 1 >= len) { ssize = len; } else { |