mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07: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':
|
||||||
case 'N':
|
case 'N':
|
||||||
keyNbr = param_get8(Cmd, cmdp+1);
|
keyNbr = param_get8(Cmd, cmdp+1);
|
||||||
if (keyNbr < 0) {
|
if (keyNbr == 0) {
|
||||||
PrintAndLog("Wrong block number");
|
PrintAndLog("Wrong block number");
|
||||||
errors = true;
|
errors = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue