diff options
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; |