aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-11 00:12:24 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-11 00:12:24 +0000
commite45e8680ed275924e23dab1f8ee484acfd1f4353 (patch)
treec01219f2021c2862be363fb65159cb9502fb04f8 /sys/fs
parentbc17d12da39ac7e147dbc097f423a90f2d9e2819 (diff)
Notes
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/ext2fs/ext2_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c
index 9d5417c1a5de..c3bd29ba3c27 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 {