diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-12-10 22:27:24 -0800 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-12-10 22:33:24 -0800 |
| commit | 70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f (patch) | |
| tree | 17ed9fe56712ddac8eec99708d82b455ca494a59 | |
| parent | 421c7a61f08ff255bf898f0e687b7d7c8fbdae77 (diff) | |
| download | zlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.tar.gz zlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.tar.bz2 zlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.zip | |
Do not set strm->adler when doing raw inflate.
| -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; |
