mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04:00
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:
parent
80ebacfc82
commit
e365815007
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue