MINOR: pattern: do not assign SMP_TYPES by default to patterns

This is never used since we exit on parse failure, and it's confusing.
This commit is contained in:
Willy Tarreau 2013-12-12 11:34:55 +01:00
parent 075415a4aa
commit f3489d2ccd
2 changed files with 0 additions and 2 deletions

View File

@ -507,7 +507,6 @@ struct acl_expr *parse_acl_expr(const char **args, char **err, struct arg_list *
}
pattern->flags = patflags;
pattern->type = SMP_TYPES; /* unspecified type */
ret = expr->pat.parse(args, pattern, NULL, &opaque, err);
if (!ret)
goto out_free_pattern;

View File

@ -860,7 +860,6 @@ int pattern_register(struct pattern_expr *expr, char *text,
(*pattern)->val.tree = &expr->pattern_tree;
}
(*pattern)->type = SMP_TYPES; /* unspecified type by default */
if (!expr->parse(args, *pattern, smp, &opaque, err))
return -1;