clang analyzer fixes

This commit is contained in:
J Harper
2016-05-04 16:22:06 -07:00
parent 27c76c7075
commit c4ff9f9b94
12 changed files with 83 additions and 124 deletions

View File

@@ -490,7 +490,7 @@ int32 psGetFileBuf(psPool_t *pool, const char *fileName, unsigned char **buf,
psTraceStrCore("Unable to open %s\n", (char*)fileName);
return PS_PLATFORM_FAIL;
}
if (fstat(fileno(fp), &f_stat) != 0) {
if (fstat(fileno(fp), &f_stat) != 0) {
fclose(fp);
psTraceStrCore("Unable to stat %s\n", (char*)fileName);
return PS_PLATFORM_FAIL;