cppcheck fixes

This commit is contained in:
iceman1001 committed 2022-01-06 20:49:35 +01:00
1 parent 60491c4f16
commit 0b4d584dd7
6 files changed
+12 -8

No files matched your search

+7 -3
View File
@@ -1213,9 +1213,11 @@ static int CmdHFMFPChk(const char *Cmd) {
if (dict_filenamelen) {
uint32_t keycnt = 0;
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), NULL, 16, &keycnt, 0, &endFilePosition, true);
keyListLen = keycnt;
if (endFilePosition)
if (res == PM3_SUCCESS && endFilePosition) {
keyListLen = keycnt;
PrintAndLogEx(SUCCESS, "First part of dictionary successfully loaded.");
}
}
if (keyListLen == 0) {
@@ -1255,7 +1257,9 @@ static int CmdHFMFPChk(const char *Cmd) {
uint32_t keycnt = 0;
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), NULL, 16, &keycnt, endFilePosition, &endFilePosition, false);
keyListLen = keycnt;
if (res == PM3_SUCCESS && endFilePosition) {
keyListLen = keycnt;
}
continue;
}
break;