BUG/MINOR: acl: fix improper string size assignment in proxy argument

This minor bug was found using the coccinelle script "da.cocci". The
len was initialized twice instead of setting the size. It's harmless
since no operations are performed on this empty string but needs to
be fixed anyway.
This commit is contained in:
Willy Tarreau 2013-09-29 11:36:53 +02:00
parent 7959a55e15
commit 8cc16530c4
1 changed files with 1 additions and 1 deletions

View File

@ -1158,7 +1158,7 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
expr->args[0].type = type;
expr->args[0].unresolved = 1;
expr->args[0].data.str.str = strdup("");
expr->args[0].data.str.len = 1;
expr->args[0].data.str.size = 1;
expr->args[0].data.str.len = 0;
arg_list_add(al, &expr->args[0], 0);