summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kidd <nkidd@opentext.com>2014-05-22 14:20:44 -0400
committerJim Kukunas <james.t.kukunas@linux.intel.com>2014-07-26 15:53:17 -0700
commit86694e8231bede02a56fcf7f4888fd221e018fed (patch)
tree440639a4ce2964dbec8c7b50404dea4c77c91a84
parent0a225b19f84d41aa87528d2858b427c63dd0c624 (diff)
deflate: avoid use of uninitialized variable
(Note emit_match() doesn't currently use the value at all.) Fixes #4
-rw-r--r--deflate_medium.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deflate_medium.c b/deflate_medium.c
index ce6bd97..4beada8 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