]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
FIX, Coverity, Unsigned compared against 0. CID #212326, keyNBr will never be negative.
[proxmark3-svn] / client / cmdhficlass.c
index 5f45ab1aeed09d304b1db0d91cc70bf4a54849d2..22d443f8fd5b6ac5589e27d3c06fcede9ca6cb14 100644 (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;
                        }
Impressum, Datenschutz