From 8e0d212910a42b3f856bbaebed970e8ddc081ca3 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 26 Sep 2011 18:34:07 -0700 Subject: Simplify gzseek() now that raw after gzip is ignored. --- gzlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gzlib.c') diff --git a/gzlib.c b/gzlib.c index c59bcda..b26b0c2 100644 --- a/gzlib.c +++ b/gzlib.c @@ -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; -- cgit v1.2.3-55-g6feb