Code tidy: fixes the initialization of some variables so that they are completely initialized to known values.

This commit is contained in:
John Engelhart
2011-07-21 15:39:03 -07:00
parent 53b5c58bb3
commit 02417a4218
+4 -2
View File
@@ -34,7 +34,7 @@
return NO;
}
unz_global_info globalInfo = {0};
unz_global_info globalInfo = {0ul, 0ul};
unzGetGlobalInfo(zip, &globalInfo);
// Begin unzipping
@@ -66,7 +66,9 @@
// Reading data and write to file
int read;
unz_file_info fileInfo = {0};
unz_file_info fileInfo;
memset(&fileInfo, 0, sizeof(unz_file_info));
ret = unzGetCurrentFileInfo(zip, &fileInfo, NULL, 0, NULL, 0, NULL, 0);
if (ret != UNZ_OK) {
success = NO;