]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: Fix uninit var in process_leaf_attr_level
authorEric Sandeen <sandeen@redhat.com>
Thu, 26 Jan 2017 02:37:23 +0000 (20:37 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 26 Jan 2017 02:37:23 +0000 (20:37 -0600)
My unreviewed maintainer adjustment on the way in gets a
brown paper bag.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/attr_repair.c

index 158e31a14184a66f231130e5bc781c583020543b..9ec2231056b5248e817564d1c881a40efaeddb4c 100644 (file)
@@ -753,6 +753,7 @@ process_leaf_attr_level(xfs_mount_t *mp,
        struct xfs_attr3_icleaf_hdr leafhdr;
 
        da_bno = da_cursor->level[0].bno;
+       ino = da_cursor->ino;
        /*
         * 0 is the root block and no block
         * pointer can point to the root block of the btree
@@ -764,7 +765,6 @@ process_leaf_attr_level(xfs_mount_t *mp,
                goto error_out;
        }
 
-       ino = da_cursor->ino;
        prev_bno = 0;
 
        do {