mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
@iceman1001 s coverity scan fixes
This commit is contained in:
parent
2b3af97df2
commit
e6432f0579
7 changed files with 13 additions and 16 deletions
|
@ -354,10 +354,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;
|
||||
|
||||
|
@ -394,10 +391,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue