inpcom.c, inp_get_func_from_line(), allow an optional '=' in ".func foo() = {expr}"

This commit is contained in:
rlar 2014-08-12 18:10:14 +02:00
parent e1f0dc5893
commit 5e8856d944
1 changed files with 4 additions and 0 deletions

View File

@ -2860,6 +2860,10 @@ inp_get_func_from_line(struct function_env *env, char *line)
end = skip_ws(end + 1);
// skip an unwanted and non advertised optional '='
if (*end == '=')
end = skip_ws(end + 1);
if (*end != '{')
goto Lerror;