]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:compression: Fix building with FORTIFY_SOURCE=2
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 15 Dec 2022 03:04:51 +0000 (16:04 +1300)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/compression/lzxpress_huffman.c

index 30744332e6e9029fcb11c6d1796a143232db53fd..c5da4af0d8578d4d74f942a223aaa84cbb16b790 100644 (file)
@@ -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) {