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>
struct dup_table *tab = NULL;
xfs_dahash_t old_hash;
unsigned long i;
- int error;
+ int error = 0;
old_hash = libxfs_da_hashname((uint8_t *)name, namelen);