diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2016-01-18 19:27:18 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2016-01-19 06:33:14 -0500 |
commit | 496bb8c2a19ccf9e8c6c67b925c492c924c9378a (patch) | |
tree | f27a840a09807d7b09573471a52345b29e4c1f6a | |
parent | 1269b5dc0d33ccf2533aed54c831bc883b7503a0 (diff) | |
download | syslinux-496bb8c2a19ccf9e8c6c67b925c492c924c9378a.tar.gz |
core/xfs: Silence compiler warning
"may be used uninitialized in this function [-Wuninitialized]" even though logic dictates
it must be OK.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r-- | core/fs/xfs/xfs_dir2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/xfs/xfs_dir2.c b/core/fs/xfs/xfs_dir2.c index f738a582..2f5928a5 100644 --- a/core/fs/xfs/xfs_dir2.c +++ b/core/fs/xfs/xfs_dir2.c @@ -630,7 +630,7 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, block_t fsblkno; xfs_da_node_hdr_t *nhdr; uint32_t hashwant; - uint32_t hash; + uint32_t hash = 0; uint16_t i; uint16_t count; xfs_da_node_entry_t *btree; @@ -645,7 +645,7 @@ struct inode *xfs_dir2_node_find_entry(const char *dname, struct inode *parent, uint8_t *end_name; int low; int high; - int mid; + int mid = 0; uint32_t newdb; uint32_t curdb; xfs_intino_t ino; |