aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:02 -0700
committerMark Adler <madler@alumni.caltech.edu>2011-09-09 23:24:02 -0700
commit79fbcdc939b5d515218187a0d5f2526fb632075a (patch)
treedc82b3a452568093ab8a9f365126ba56a419eea1 /inflate.c
parent7a6955760ba950eb82f57929f8f6c9847c65f0af (diff)
downloadzlib-79fbcdc939b5d515218187a0d5f2526fb632075a.tar.gz
zlib-79fbcdc939b5d515218187a0d5f2526fb632075a.tar.bz2
zlib-79fbcdc939b5d515218187a0d5f2526fb632075a.zip
zlib 1.2.2v1.2.2
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/inflate.c b/inflate.c
index 06ca1de..c6d3826 100644
--- a/inflate.c
+++ b/inflate.c
@@ -109,6 +109,7 @@ 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 state->mode = HEAD; 113 state->mode = HEAD;
113 state->last = 0; 114 state->last = 0;
114 state->havedict = 0; 115 state->havedict = 0;
@@ -861,8 +862,8 @@ int flush;
861 } 862 }
862 } 863 }
863 864
864 /* handle error breaks in while */ 865 /* handle error breaks in while */
865 if (state->mode == BAD) break; 866 if (state->mode == BAD) break;
866 867
867 /* build code tables */ 868 /* build code tables */
868 state->next = state->codes; 869 state->next = state->codes;