]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Do not set s->prev_length in deflate_medium, it is previously set in lm_init already.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Wed, 10 Jun 2020 06:00:36 +0000 (23:00 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sat, 27 Jun 2020 14:24:14 +0000 (16:24 +0200)
deflate_medium.c

index c043537fa10c87284ebe92bd64028d20d05bf176..4e3f1d890fcfccc72d05f410fd9a7185e65f2d1b 100644 (file)
@@ -186,7 +186,6 @@ ZLIB_INTERNAL block_state deflate_medium(deflate_state *s, int flush) {
                 break; /* flush the current block */
             next_match.match_length = 0;
         }
-        s->prev_length = 2;
 
         /* Insert the string window[strstart .. strstart+2] in the
          * dictionary, and set hash_head to the head of the hash chain: