igzip: fix build warning

Fix the following build issue by initializing look_back_dist to 0.

igzip/igzip_inflate.c: In function ‘decode_huffman_code_block_stateless_base’:
igzip/igzip_inflate.c:1727:36:
 warning: ‘look_back_dist’ may be used uninitialized  [-Wmaybe-uninitialized]

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2023-09-19 16:25:26 +01:00 committed by Tomasz Kantecki
parent acbe0deecf
commit e2acfbfe78

View File

@ -1607,7 +1607,7 @@ int decode_huffman_code_block_stateless_base(struct inflate_state *state, uint8_
uint16_t next_lit;
uint8_t next_dist;
uint32_t repeat_length;
uint32_t look_back_dist;
uint32_t look_back_dist = 0;
uint64_t read_in_tmp;
int32_t read_in_length_tmp;
uint8_t *next_in_tmp, *next_out_tmp;