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 zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.tar.bz2 zlib-8e0d212910a42b3f856bbaebed970e8ddc081ca3.zip |
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) | |||
310 | 310 | ||
311 | /* if within raw area while reading, just go there */ | 311 | /* if within raw area while reading, just go there */ |
312 | if (state->mode == GZ_READ && state->how == COPY && | 312 | if (state->mode == GZ_READ && state->how == COPY && |
313 | state->pos + offset >= state->raw) { | 313 | state->pos + offset >= 0) { |
314 | ret = LSEEK(state->fd, offset - state->have, SEEK_CUR); | 314 | ret = LSEEK(state->fd, offset - state->have, SEEK_CUR); |
315 | if (ret == -1) | 315 | if (ret == -1) |
316 | return -1; | 316 | return -1; |