mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: "hf mf hardnested" - less printing
CHG: some filehandles = NULL.
This commit is contained in:
parent
3c528f5fda
commit
2dcf60f3df
15 changed files with 112 additions and 61 deletions
|
@ -2216,7 +2216,10 @@ int CmdLoad(const char *Cmd)
|
|||
GraphBuffer[GraphTraceLen] = atoi(line);
|
||||
GraphTraceLen++;
|
||||
}
|
||||
fclose(f);
|
||||
if (f) {
|
||||
fclose(f);
|
||||
f = NULL;
|
||||
}
|
||||
PrintAndLog("loaded %d samples", GraphTraceLen);
|
||||
RepaintGraphWindow();
|
||||
return 0;
|
||||
|
@ -2290,7 +2293,10 @@ int CmdSave(const char *Cmd)
|
|||
for (i = 0; i < GraphTraceLen; i++) {
|
||||
fprintf(f, "%d\n", GraphBuffer[i]);
|
||||
}
|
||||
fclose(f);
|
||||
if (f) {
|
||||
fclose(f);
|
||||
f = NULL;
|
||||
}
|
||||
PrintAndLog("saved to '%s'", Cmd);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue