diff options
Diffstat (limited to 'thirdparty/zlib/gzread.c')
-rw-r--r-- | thirdparty/zlib/gzread.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/thirdparty/zlib/gzread.c b/thirdparty/zlib/gzread.c index 884c9bfe4c..dd77381596 100644 --- a/thirdparty/zlib/gzread.c +++ b/thirdparty/zlib/gzread.c @@ -157,11 +157,9 @@ local int gz_look(state) the output buffer is larger than the input buffer, which also assures space for gzungetc() */ state->x.next = state->out; - if (strm->avail_in) { - memcpy(state->x.next, strm->next_in, strm->avail_in); - state->x.have = strm->avail_in; - strm->avail_in = 0; - } + memcpy(state->x.next, strm->next_in, strm->avail_in); + state->x.have = strm->avail_in; + strm->avail_in = 0; state->how = COPY; state->direct = 1; return 0; |