Commit c0eab6b4 authored by Benoît Minisini's avatar Benoît Minisini

Don't crash if a component use NULL as error message argument. Replace it by a void string.

[INTERPRETER]
* BUG: Don't crash if a component use NULL as error message argument. Replace it by a void string.
parent 8d04122c
......@@ -313,7 +313,10 @@ static int get_message_length(const char *pattern, char *arg[], int narg)
len = strlen(pattern) + narg;
for (i = 0; i < narg; i++)
len += strlen(arg[i]);
{
if (arg[i])
len += strlen(arg[i]);
}
if (!EXEC_debug)
len -= narg * 3;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment