aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inflate.c b/inflate.c
index 82e39be..2889e3a 100644
--- a/inflate.c
+++ b/inflate.c
@@ -645,6 +645,8 @@ int flush;
645 NEEDBITS(16); 645 NEEDBITS(16);
646#ifdef GUNZIP 646#ifdef GUNZIP
647 if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */ 647 if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */
648 if (state->wbits == 0)
649 state->wbits = 15;
648 state->check = crc32(0L, Z_NULL, 0); 650 state->check = crc32(0L, Z_NULL, 0);
649 CRC2(state->check, hold); 651 CRC2(state->check, hold);
650 INITBITS(); 652 INITBITS();