diff options
author | Mark Adler <fork@madler.net> | 2022-10-06 12:57:31 -0700 |
---|---|---|
committer | Mark Adler <fork@madler.net> | 2022-10-06 20:43:18 -0700 |
commit | 9331fecc10d1409b8f63cbb3cc2365596255d672 (patch) | |
tree | b8d86f98a2c4b71da5473ded17c8d7646dbc304d /gzread.c | |
parent | d0704a820186481da35d08f4b655881e1d32089f (diff) | |
download | zlib-9331fecc10d1409b8f63cbb3cc2365596255d672.tar.gz |
Remove redundant check in gz_look().
Diffstat (limited to 'gzread.c')
-rw-r--r-- | gzread.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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; |