NULL pointer check on scripts.
This commit is contained in:
parent
fbc4eb01d1
commit
e13243d926
|
@ -73,6 +73,8 @@ void runScriptFunction(const char *format, ...)
|
|||
char funcNameBuffer[MAX_NAME_LENGTH];
|
||||
va_list args;
|
||||
|
||||
if (scriptJSON)
|
||||
{
|
||||
memset(&funcNameBuffer, '\0', sizeof(funcNameBuffer));
|
||||
|
||||
va_start(args, format);
|
||||
|
@ -100,6 +102,7 @@ void runScriptFunction(const char *format, ...)
|
|||
|
||||
function = function->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void executeNextLine(ScriptRunner *runner)
|
||||
|
|
Loading…
Reference in New Issue