Simplify gzseek() now that raw after gzip is ignored.

This commit is contained in:
Mark Adler
2011-09-26 18:34:07 -07:00
parent 50e440f081
commit 8e0d212910
3 changed files with 4 additions and 6 deletions

View File

@@ -310,7 +310,7 @@ z_off64_t ZEXPORT gzseek64(file, offset, whence)
/* if within raw area while reading, just go there */
if (state->mode == GZ_READ && state->how == COPY &&
state->pos + offset >= state->raw) {
state->pos + offset >= 0) {
ret = LSEEK(state->fd, offset - state->have, SEEK_CUR);
if (ret == -1)
return -1;