mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
might fix coverity CID 305865
This commit is contained in:
parent
b267ee8ef5
commit
cc3fcb0ec6
1 changed files with 4 additions and 1 deletions
|
@ -915,13 +915,16 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
// execute lua script
|
// execute lua script
|
||||||
if (strcmp(argv[i], "-l") == 0 || strcmp(argv[i], "--lua") == 0) {
|
if (strcmp(argv[i], "-l") == 0 || strcmp(argv[i], "--lua") == 0) {
|
||||||
addLuaExec = true;
|
|
||||||
if (i + 1 == argc || strlen(argv[i + 1]) == 0) {
|
if (i + 1 == argc || strlen(argv[i + 1]) == 0) {
|
||||||
PrintAndLogEx(ERR, _RED_("ERROR:") " missing lua script specification after -l\n");
|
PrintAndLogEx(ERR, _RED_("ERROR:") " missing lua script specification after -l\n");
|
||||||
show_help(false, exec_name);
|
show_help(false, exec_name);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
script_cmd = argv[++i];
|
script_cmd = argv[++i];
|
||||||
|
if (script_cmd == NULL || strlen(script_cmd) == 0) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
addLuaExec = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue