NULL pointer check on scripts.

This commit is contained in:
Steve 2015-11-28 15:04:11 +00:00
parent fbc4eb01d1
commit e13243d926
1 changed files with 23 additions and 20 deletions

View File

@ -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)