mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 09:10:49 +02:00
- added coverity linux script
- a few updates to fix coverity reported issues
This commit is contained in:
@@ -191,6 +191,8 @@ int zipfile_tool(int argc, const char *argv[]) {
|
||||
}
|
||||
else if (status != Z_OK) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("deflate() failed with status %i!\n", status);
|
||||
if(pInfile) fclose(pInfile);
|
||||
if(pOutfile) fclose(pOutfile);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
}
|
||||
@@ -207,6 +209,7 @@ int zipfile_tool(int argc, const char *argv[]) {
|
||||
if (inflateInit(&stream)) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("inflateInit() failed!\n");
|
||||
if(pInfile) fclose(pInfile);
|
||||
if(pOutfile) fclose(pOutfile);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
@@ -218,6 +221,7 @@ int zipfile_tool(int argc, const char *argv[]) {
|
||||
|
||||
if (fread(s_inbuf, 1, n, pInfile) != n) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Failed reading from input file!\n");
|
||||
if(pInfile) fclose(pInfile);
|
||||
if(pOutfile) fclose(pOutfile);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
@@ -246,6 +250,7 @@ int zipfile_tool(int argc, const char *argv[]) {
|
||||
}
|
||||
else if (status != Z_OK) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("inflate() failed with status %i!\n", status);
|
||||
if(pInfile) fclose(pInfile);
|
||||
if(pOutfile) fclose(pOutfile);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user