From c39636b71b6a4f2830aec82b92b9a6bf71684aaa Mon Sep 17 00:00:00 2001 From: Lukas Mollidor Date: Mon, 22 Sep 2014 17:49:25 +0200 Subject: [PATCH] Avoid shadowing variable when extracting ZIP64 extra header fields --- SSZipArchive/minizip/unzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSZipArchive/minizip/unzip.c b/SSZipArchive/minizip/unzip.c index 2f95959..d81438e 100755 --- a/SSZipArchive/minizip/unzip.c +++ b/SSZipArchive/minizip/unzip.c @@ -1038,7 +1038,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file, /* ZIP64 extra fields */ if (headerId == 0x0001) { - uLong uL; + uLong uLZip64; if(file_info.uncompressed_size == (ZPOS64_T)(unsigned long)-1) { @@ -1062,7 +1062,7 @@ local int unz64local_GetCurrentFileInfoInternal (unzFile file, if(file_info.disk_num_start == (unsigned long)-1) { /* Disk Start Number */ - if (unz64local_getLong(&s->z_filefunc, s->filestream,&uL) != UNZ_OK) + if (unz64local_getLong(&s->z_filefunc, s->filestream,&uLZip64) != UNZ_OK) err=UNZ_ERRNO; }