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:
parent
075415a4aa
commit
f3489d2ccd
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue