]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_db: Fix uninicialized error variable
authorPavel Reichl <preichl@redhat.com>
Thu, 30 May 2024 22:38:18 +0000 (00:38 +0200)
committerCarlos Maiolino <cem@kernel.org>
Mon, 17 Jun 2024 11:55:51 +0000 (13:55 +0200)
commita3e126d559a17f522e892079f142f9a74a077deb
tree3f77165ccff6d4f9123e370562814413a3535c23
parentb6ae0d862839eafee0139da731fef64e6c2279c1
xfs_db: Fix uninicialized error variable

To silence redhat's covscan checker:

Error: UNINIT (CWE-457): [#def1] [important]
xfsprogs-6.4.0/db/hash.c:308:2: var_decl: Declaring variable "error" without initializer.
xfsprogs-6.4.0/db/hash.c:353:2: uninit_use: Using uninitialized value "error".

Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/hash.c