BUG/MINOR: vars: truncate the variable name in error reports about scope.
authorWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 08:12:55 +0000 (10:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 09:01:12 +0000 (11:01 +0200)
commit1402fef58aedbac671dd81b4ac93dc7008fcde50
tree569a920291d7a30f1788664bd652aa41e02208f4
parentc77bad24671bd92445d78db6667be47b201ee3dd
BUG/MINOR: vars: truncate the variable name in error reports about scope.

When a variable starts with the wrong scope, it is named without stripping
the extra characters that follow it, which usually are closing parenthesis.
Let's make sure we only report what is expected.

This may be backported to 2.4.
src/vars.c