More source tidies. Remove actual or potential local variable symbol shadows, plus a few other non-functionality impacting changes.

This commit is contained in:
John Engelhart
2011-07-21 21:52:14 -07:00
parent 02417a4218
commit f24f550eb7
3 changed files with 45 additions and 44 deletions
+3 -4
View File
@@ -65,7 +65,6 @@
}
// Reading data and write to file
int read;
unz_file_info fileInfo;
memset(&fileInfo, 0, sizeof(unz_file_info));
@@ -109,10 +108,10 @@
FILE *fp = fopen((const char*)[fullPath UTF8String], "wb");
while (fp) {
read = unzReadCurrentFile(zip, buffer, 4096);
int readBytes = unzReadCurrentFile(zip, buffer, 4096);
if (read > 0) {
fwrite(buffer, read, 1, fp );
if (readBytes > 0) {
fwrite(buffer, readBytes, 1, fp );
} else {
break;
}