em_inflate.c

Fast, small, in-memory inflate (zlib, deflate and gzip decompression)
git clone git://git.finwo.net/lib/em_inflate.c
Log | Files | Refs | README | LICENSE

commit 93d387b7680be51d1ee1ff51bf1f886c91f24f1d
parent 0252b96eb9149c3ba3d5ade117247ac0008c0c8e
Author: Emmanuel Marty <emmanuel@fgl.com>
Date:   Sat, 10 Oct 2020 12:51:04 +0200

Remove unreachable code
Diffstat:
Mlib/em_inflate.c | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/lib/em_inflate.c b/lib/em_inflate.c @@ -603,13 +603,8 @@ static size_t em_inflate_decompress_block(em_lsb_bitreader_t *pBitReader, int nD nLiteralsRevSymbolTable[i] = em_inflate_matchlen_code[index]; } else { - if (n < NLITERALSYMS) { - /* Handle 286 and 287 codes, used for constructing a complete canonical tree, present in static huffman tables but not used */ - nLiteralsRevSymbolTable[i] = 0; - } - else { - return -1; - } + /* Handle 286 and 287 codes, used for constructing a complete canonical tree, present in static huffman tables but not used */ + nLiteralsRevSymbolTable[i] = 0; } } }