diff options
Diffstat (limited to 'inflate.c')
-rw-r--r-- | inflate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -109,7 +109,8 @@ z_streamp strm; | |||
109 | state = (struct inflate_state FAR *)strm->state; | 109 | state = (struct inflate_state FAR *)strm->state; |
110 | strm->total_in = strm->total_out = state->total = 0; | 110 | strm->total_in = strm->total_out = state->total = 0; |
111 | strm->msg = Z_NULL; | 111 | strm->msg = Z_NULL; |
112 | strm->adler = 1; /* to support ill-conceived Java test suite */ | 112 | if (state->wrap) /* to support ill-conceived Java test suite */ |
113 | strm->adler = state->wrap & 1; | ||
113 | state->mode = HEAD; | 114 | state->mode = HEAD; |
114 | state->last = 0; | 115 | state->last = 0; |
115 | state->havedict = 0; | 116 | state->havedict = 0; |