MINOR: vars: support storing empty sample data with a variable
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 11:58:19 +0000 (13:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 11:59:43 +0000 (13:59 +0200)
commit63c30667d7910ce4b76f4381c3bf902e249ad43d
tree8bc373b2b017ea7d77a9cb035dbacac9c78d7d59
parent4994b57728af4cbd446dedb7aa71c44d43503b69
MINOR: vars: support storing empty sample data with a variable

Storing an unset sample (SMP_T_ANY == 0) will be used to only reserve
the variable's space but associate no value. We need to slightly adjust
var_to_smp() for this so that it considers a value-less variable as non
existent and falls back to the default value.
src/vars.c