Do not set strm->adler when doing raw inflate.

This commit is contained in:
Mark Adler 2011-12-10 22:27:24 -08:00
parent 421c7a61f0
commit 70e3b1ca56

View File

@ -109,7 +109,8 @@ z_streamp strm;
state = (struct inflate_state FAR *)strm->state;
strm->total_in = strm->total_out = state->total = 0;
strm->msg = Z_NULL;
strm->adler = 1; /* to support ill-conceived Java test suite */
if (state->wrap) /* to support ill-conceived Java test suite */
strm->adler = state->wrap & 1;
state->mode = HEAD;
state->last = 0;
state->havedict = 0;