From b9c020a1dd2d275e0c07bd208655073f10de2628 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 9 Oct 2019 12:46:01 +0200 Subject: [PATCH] coverity 227802 - fix uninitialized --- client/cmdscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdscript.c b/client/cmdscript.c index f8306c041..322fd6adb 100644 --- a/client/cmdscript.c +++ b/client/cmdscript.c @@ -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) {