commit | e352b9dac744da99076b9dc1534825298bc0428a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Sep 03 11:52:38 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 03 12:08:54 2021 +0200 |
tree | ecab5c305826ae3087a07691151dd504c48b1368 | |
parent | be7e00d1343fa8353e47b16cfad08852347e7870 [diff] |
MINOR: vars: make vars_get_by_* support an optional default value In preparation for support default values when fetching variables, we need to update the internal API to pass an extra argument to functions vars_get_by_{name,desc} to provide an optional default value. This patch does this and always passes NULL in this argument. var_to_smp() was extended to fall back to this value when available.