From: Nathan Kidd Date: Thu, 22 May 2014 18:20:44 +0000 (-0400) Subject: deflate: avoid use of uninitialized variable X-Git-Tag: v1.2.8-jtkv4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86694e8231bede02a56fcf7f4888fd221e018fed;p=thirdparty%2Fzlib-ng.git deflate: avoid use of uninitialized variable (Note emit_match() doesn't currently use the value at all.) Fixes #4 --- diff --git a/deflate_medium.c b/deflate_medium.c index ce6bd97d8..4beada8d8 100644 --- a/deflate_medium.c +++ b/deflate_medium.c @@ -174,7 +174,7 @@ block_state deflate_medium(deflate_state *s, int flush) memset(&next_match, 0, sizeof(struct match)); for (;;) { - IPos hash_head; /* head of the hash chain */ + IPos hash_head = 0; /* head of the hash chain */ int bflush; /* set if current block must be flushed */ /* Make sure that we always have enough lookahead, except