mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-19 19:38:52 +08:00
FIX, Coverity, Unsigned compared against 0. CID #212326, keyNBr will never be negative.
This commit is contained in:
parent
ddb748a973
commit
8b15860ed1
1 changed files with 1 additions and 1 deletions
|
@ -1612,7 +1612,7 @@ int CmdHFiClassManageKeys(const char *Cmd) {
|
|||
case 'n':
|
||||
case 'N':
|
||||
keyNbr = param_get8(Cmd, cmdp+1);
|
||||
if (keyNbr < 0) {
|
||||
if (keyNbr == 0) {
|
||||
PrintAndLog("Wrong block number");
|
||||
errors = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue