]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Dont set hash_head, it is overwritten before being accessed again.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 22 May 2015 20:32:42 +0000 (22:32 +0200)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 22 May 2015 20:32:42 +0000 (22:32 +0200)
deflate.c

index ebfcb6dff5b045a9995fa570713c5df5cb0b3dd2..4a4abf2ad1ade93262230360f23e52677f9b6f1a 100644 (file)
--- a/deflate.c
+++ b/deflate.c
@@ -1487,7 +1487,7 @@ local block_state deflate_fast(deflate_state *s, int flush)
                 s->match_length--; /* string at strstart already in table */
                 do {
                     s->strstart++;
-                    hash_head = insert_string(s, s->strstart);
+                    insert_string(s, s->strstart);
                     /* strstart never exceeds WSIZE-MAX_MATCH, so there are
                      * always MIN_MATCH bytes ahead.
                      */