From e961783add974c3bc4a0fc89e5db32b3ce39ff55 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 15 Dec 2022 16:04:51 +1300 Subject: [PATCH] lib:compression: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- lib/compression/lzxpress_huffman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compression/lzxpress_huffman.c b/lib/compression/lzxpress_huffman.c index 30744332e6e..c5da4af0d85 100644 --- a/lib/compression/lzxpress_huffman.c +++ b/lib/compression/lzxpress_huffman.c @@ -1514,7 +1514,7 @@ static bool fill_decomp_table(struct bitstream *input) uint16_t sort_mem[512]; size_t i, n_symbols; ssize_t code; - uint16_t len, prev_len; + uint16_t len = 0, prev_len; const uint8_t *table_bytes = input->bytes + input->byte_pos; if (input->byte_pos + 260 > input->byte_size) { -- 2.47.3