gzip-iso: fix compiler warning/error

This commit is contained in:
Avi Halachmi (:avih) 2014-04-29 23:23:07 +03:00
parent 49505ab93f
commit 0f26be85b5
1 changed files with 2 additions and 1 deletions

View File

@ -353,6 +353,7 @@ local int extract(FILE *in, struct access *index, PX_off_t offset,
unsigned char input[CHUNK];
unsigned char discard[WINSIZE];
PX_off_t orig_offset = offset;
int isEnd = 0;
/* proceed only if something reasonable to do */
if (len < 0)
@ -456,7 +457,7 @@ local int extract(FILE *in, struct access *index, PX_off_t offset,
/* do until offset reached and requested data read, or stream ends */
} while (skip);
int isEnd = ret == Z_STREAM_END;
isEnd = ret == Z_STREAM_END;
/* compute number of uncompressed bytes read after offset */
ret = skip ? 0 : len - strm.avail_out;