diff options
Diffstat (limited to 'inflate.c')
-rw-r--r-- | inflate.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |