BUGS: more Coverity scan fixes.
This commit is contained in:
1 parent
2696349f16
commit
664bb5ae72
6 files changed
+10
-13
No files matched your search
+2
-8
@@ -356,10 +356,7 @@ int loadTraceCard(uint8_t *tuid) {
|
||||
FillFileNameByUID(traceFileName, tuid, ".eml", 7);
|
||||
|
||||
f = fopen(traceFileName, "r");
|
||||
if (!f) {
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
if (!f) return 1;
|
||||
|
||||
blockNum = 0;
|
||||
|
||||
@@ -396,10 +393,7 @@ int saveTraceCard(void) {
|
||||
if ((!strlen(traceFileName)) || (isTraceCardEmpty())) return 0;
|
||||
|
||||
f = fopen(traceFileName, "w+");
|
||||
if ( !f ) {
|
||||
fclose(f);
|
||||
return 1;
|
||||
}
|
||||
if ( !f ) return 1;
|
||||
|
||||
for (int i = 0; i < 64; i++) { // blocks
|
||||
for (int j = 0; j < 16; j++) // bytes
|
||||
|
||||
Reference in new issue
Block a user