FIX, Coverity, Unsigned compared against 0. CID #212326, keyNBr will never be negative.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user