mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
coverity fix 286664
This commit is contained in:
parent
6a55330398
commit
25c94177f8
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ int preferences_save(void) {
|
||||||
|
|
||||||
if (fileExists(fn)) {
|
if (fileExists(fn)) {
|
||||||
if (rename(fn, backupFilename) != 0) {
|
if (rename(fn, backupFilename) != 0) {
|
||||||
PrintAndLogEx(FAILED, "Error - could not backup settings file \"%s\" to \"%s\"", prefGetFilename(), backupFilename);
|
PrintAndLogEx(FAILED, "Error - could not backup settings file \"%s\" to \"%s\"", fn, backupFilename);
|
||||||
free(fn);
|
free(fn);
|
||||||
free(backupFilename);
|
free(backupFilename);
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
|
@ -927,7 +927,7 @@ static int CmdPrefShow(const char *Cmd) {
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrintAndLogEx(NORMAL, " preference file........ "_GREEN_("%s"), prefGetFilename());
|
// PrintAndLogEx(NORMAL, " preference file........ "_GREEN_("%s"), fn);
|
||||||
showEmojiState(prefShowNone);
|
showEmojiState(prefShowNone);
|
||||||
showHintsState(prefShowNone);
|
showHintsState(prefShowNone);
|
||||||
showColorState(prefShowNone);
|
showColorState(prefShowNone);
|
||||||
|
|
Loading…
Reference in a new issue