cppcheck fix uninitvar
This commit is contained in:
1 parent
cd825bfac8
commit
ed10409bfd
1 file changed
+9
-6
@@ -743,13 +743,16 @@ int CmdHF14ASim(const char *Cmd) {
|
|||||||
keypress = kbd_enter_pressed();
|
keypress = kbd_enter_pressed();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keypress && (flags & FLAG_NR_AR_ATTACK) == FLAG_NR_AR_ATTACK) {
|
if (keypress) {
|
||||||
// inform device to break the sim loop since client has exited
|
if ((flags & FLAG_NR_AR_ATTACK) == FLAG_NR_AR_ATTACK) {
|
||||||
SendCommandNG(CMD_BREAK_LOOP, NULL, 0);
|
// inform device to break the sim loop since client has exited
|
||||||
}
|
SendCommandNG(CMD_BREAK_LOOP, NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (resp.status == PM3_EOPABORTED && ((flags & FLAG_NR_AR_ATTACK) == FLAG_NR_AR_ATTACK))
|
if (resp.status == PM3_EOPABORTED && ((flags & FLAG_NR_AR_ATTACK) == FLAG_NR_AR_ATTACK)) {
|
||||||
showSectorTable(k_sector, k_sectorsCount);
|
showSectorTable(k_sector, k_sectorsCount);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Done");
|
PrintAndLogEx(INFO, "Done");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
|
|||||||
Reference in new issue
Block a user