mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-14 00:53:12 +08:00
coverity 227802 - fix uninitialized
This commit is contained in:
parent
0aa88aecf5
commit
b9c020a1dd
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ static int CmdScriptRun(const char *Cmd) {
|
|||
static uint8_t luascriptfile_idx = 0;
|
||||
sscanf(Cmd, "%127s%n %255[^\n\r]%n", preferredName, &name_len, arguments, &arg_len);
|
||||
|
||||
char *script_path;
|
||||
char *script_path = NULL;
|
||||
if ((!str_endswith(preferredName, ".cmd")) && (searchFile(&script_path, LUA_SCRIPTS_SUBDIR, preferredName, ".lua", true) == PM3_SUCCESS)) {
|
||||
int error;
|
||||
if (luascriptfile_idx == MAX_NESTED_LUASCRIPT) {
|
||||
|
|
Loading…
Reference in a new issue