aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-12-10 22:27:24 -0800
committerMark Adler <madler@alumni.caltech.edu>2011-12-10 22:33:24 -0800
commit70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f (patch)
tree17ed9fe56712ddac8eec99708d82b455ca494a59 /inflate.c
parent421c7a61f08ff255bf898f0e687b7d7c8fbdae77 (diff)
downloadzlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.tar.gz
zlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.tar.bz2
zlib-70e3b1ca56f2ffe8944d3ac0d59b8781127bf94f.zip
Do not set strm->adler when doing raw inflate.
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/inflate.c b/inflate.c
index 1523598..92a4665 100644
--- a/inflate.c
+++ b/inflate.c
@@ -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;