diff options
Diffstat (limited to 'gzread.c')
| -rw-r--r-- | gzread.c | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -267,6 +267,10 @@ local int gz_fetch(gz_statep state) { | |||
| 267 | strm->next_out = state->out; | 267 | strm->next_out = state->out; |
| 268 | if (gz_decomp(state) == -1) | 268 | if (gz_decomp(state) == -1) |
| 269 | return -1; | 269 | return -1; |
| 270 | break; | ||
| 271 | default: | ||
| 272 | gz_error(state, Z_STREAM_ERROR, "state corrupt"); | ||
| 273 | return -1; | ||
| 270 | } | 274 | } |
| 271 | } while (state->x.have == 0 && (!state->eof || strm->avail_in)); | 275 | } while (state->x.have == 0 && (!state->eof || strm->avail_in)); |
| 272 | return 0; | 276 | return 0; |
