diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-26 18:34:07 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-26 18:34:07 -0700 |
commit | 8e0d212910a42b3f856bbaebed970e8ddc081ca3 (patch) | |
tree | ba735fdcd32de6830eb6dc886837b12da3c0cba1 /gzlib.c | |
parent | 50e440f081a0edc293dcfe7333a91d764e3d15cd (diff) | |
download | zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.tar.gz |
Simplify gzseek() now that raw after gzip is ignored.
Diffstat (limited to 'gzlib.c')
-rw-r--r-- | gzlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |