Stricter parsing of SET command expressions.

This commit is contained in:
Dianne Skoll
2023-12-22 14:22:54 -05:00
parent 3df2b72175
commit 32e8db322d
5 changed files with 21 additions and 2 deletions
+3 -1
View File
@@ -349,7 +349,9 @@ int CallUserFunc(char const *name, int nargs, ParsePtr p)
/* Skip the opening bracket, if there's one */
while (isempty(*s)) s++;
if (*s == BEG_OF_EXPR) s++;
if (*s == BEG_OF_EXPR) {
s++;
}
push_call(f->filename, f->name, f->lineno);
h = Evaluate(&s, f->locals, p);
if (h == OK) {