FIX, Coverity, Unsigned compared against 0. CID #212326, keyNBr will never be negative.

This commit is contained in:
iceman1001 committed 2016-01-12 22:53:13 +01:00
1 parent ddb748a973
commit 8b15860ed1
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}