From 8fc866df4070e23ec0cc88a84c8ecfd456dfb30d Mon Sep 17 00:00:00 2001 From: Wendigo <84196391+wendig0x@users.noreply.github.com> Date: Fri, 19 May 2023 23:15:01 +0300 Subject: update zlib to latest version 1.2.13 (#986) --- src/Common/zlib/gzread.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/Common/zlib/gzread.c') diff --git a/src/Common/zlib/gzread.c b/src/Common/zlib/gzread.c index 884c9bfe..dd773815 100644 --- a/src/Common/zlib/gzread.c +++ b/src/Common/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; -- cgit v1.2.3