From 0f26be85b5f2f5c0968b9d2e043807a7304d7337 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Tue, 29 Apr 2014 23:23:07 +0300 Subject: [PATCH] gzip-iso: fix compiler warning/error --- pcsx2/CDVD/zlib_indexed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/CDVD/zlib_indexed.c b/pcsx2/CDVD/zlib_indexed.c index 41d4bba209..691afe5cf4 100644 --- a/pcsx2/CDVD/zlib_indexed.c +++ b/pcsx2/CDVD/zlib_indexed.c @@ -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;