From: Bill O'Donnell Date: Fri, 14 Jun 2024 16:00:14 +0000 (-0500) Subject: xfs_db: fix unitialized automatic struct ifake to 0. X-Git-Tag: v6.9.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=281cc21031e6b0baadcfa195cd07ebf479390c82;p=thirdparty%2Fxfsprogs-dev.git xfs_db: fix unitialized automatic struct ifake to 0. Ensure automatic struct ifake is properly initialized. Coverity-id: 1596600, 1596597 Signed-off-by: Bill O'Donnell Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- diff --git a/db/bmap_inflate.c b/db/bmap_inflate.c index 00e1aff6..4de534dc 100644 --- a/db/bmap_inflate.c +++ b/db/bmap_inflate.c @@ -340,7 +340,7 @@ build_new_datafork( const struct xfs_bmbt_irec *irec, xfs_extnum_t nextents) { - struct xbtree_ifakeroot ifake; + struct xbtree_ifakeroot ifake = {}; struct xfs_btree_cur *bmap_cur; int error; @@ -396,7 +396,7 @@ estimate_size( .leaf_slack = 1, .node_slack = 1, }; - struct xbtree_ifakeroot ifake; + struct xbtree_ifakeroot ifake = {}; struct xfs_btree_cur *bmap_cur; int error;