]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: vars: pre-create parsed SCOPE_PROC variables as permanent ones
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 09:07:32 +0000 (11:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 13:06:11 +0000 (15:06 +0200)
commitdf8eeb1619580a39dc4c3605cef472b10bb3386c
treee7bd75de98cbc1423cf1797d07b3fa83a63646bc
parentc1c88f4809092bbf9ba1d6f56cbc46f0e3fee146
MEDIUM: vars: pre-create parsed SCOPE_PROC variables as permanent ones

All variables whose names are parsed by the config parser, the
command-line parser or the SPOE's register-var-names parser are
now preset as permanent. This will guarantee that these variables
will exist through out all the process' life, and that it will be
possible to implement the "ifexist" feature by looking them up.

This was marked medium because pre-setting a variable with an empty
value may always have side effects, even though none was spotted at
this stage.
src/vars.c