]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: fix unint var in repair phase6
authorEric Sandeen <sandeen@redhat.com>
Thu, 1 Aug 2013 01:13:10 +0000 (01:13 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-140.americas.sgi.com>
Fri, 9 Aug 2013 13:23:48 +0000 (08:23 -0500)
commit312592defb8b6051389a56a5c780819b4239dab4
tree25ced57e18275746326dc04250a0a8540e769a62
parentaba29588f81dad52129037c15fe584ec89b36a4f
xfsprogs: fix unint var in repair phase6

2 calls to libxfs_bmapi_write exist in repair's phase6
where "first" is uninitialized, but is accessed
in that function.

Normally we call xfs_bmap_init() first to initialize
both the free list and the first block, but in these
cases, the free list var is sent as NULL.

So in these 2 cases, explicitly initialize the "first"
variable to NULLFSBLOCK as xfs_bmap_init() does
elsewhere.

Coverity caught this.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
repair/phase6.c