From: Joseph Sutton Date: Thu, 15 Dec 2022 03:04:51 +0000 (+1300) Subject: lib:compression: Fix building with FORTIFY_SOURCE=2 X-Git-Tag: tevent-0.16.0~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e961783add974c3bc4a0fc89e5db32b3ce39ff55;p=thirdparty%2Fsamba.git lib:compression: Fix building with FORTIFY_SOURCE=2 Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- 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) {