code cleanup based on cppcheck results

This commit is contained in:
Mark Vejvoda
2013-05-17 03:59:34 +00:00
parent 0c9679b8b2
commit 8408526b12
31 changed files with 85 additions and 117 deletions

View File

@@ -119,7 +119,9 @@ int zipfile_tool(int argc, const char *argv[]) {
if ((file_loc < 0) || (file_loc > INT_MAX)) {
// This is not a limitation of miniz or tinfl, but this example.
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("File is too large to be processed by this example.\n");
printf("File is too large to be processed by this example.\n");
fclose(pInfile);
return EXIT_FAILURE;
}
@@ -128,7 +130,9 @@ int zipfile_tool(int argc, const char *argv[]) {
// Open output file.
pOutfile = fopen(pDst_filename, "wb");
if (!pOutfile) {
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Failed opening output file!\n");
printf("Failed opening output file!\n");
fclose(pInfile);
return EXIT_FAILURE;
}