BUILD: vars: remove a build warning on vars.c

gcc 3.4.6 noticed a possibly unitialized variable in vars.c, and while it
cannot happen the way the function is used, it's surprizing that newer
versions did not report it.

This fix may be backported to 1.6.
This commit is contained in:
Willy Tarreau 2016-11-24 21:23:28 +01:00
parent 80ebacfc82
commit e365815007

View file

@ -676,7 +676,7 @@ static enum act_parse_ret parse_store(const char **args, int *arg, struct proxy
const char *var_name = args[*arg-1];
int var_len;
const char *kw_name;
int flags, set_var;
int flags, set_var = 0;
if (!strncmp(var_name, "set-var", 7)) {
var_name += 7;