Skip to content

Commit

Permalink
deflate: avoid use of uninitialized variable
Browse files Browse the repository at this point in the history
(Note emit_match() doesn't currently use the value at all.)

Fixes madler#4
  • Loading branch information
nathankidd authored and GrabYourPitchforks committed Jul 28, 2022
1 parent a928b0b commit 7e9c6d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deflate_medium.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,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
Expand Down

0 comments on commit 7e9c6d4

Please sign in to comment.