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.
diff --git a/src/acl.c b/src/acl.c
index be20959..974e919 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -507,7 +507,6 @@
}
pattern->flags = patflags;
- pattern->type = SMP_TYPES; /* unspecified type */
ret = expr->pat.parse(args, pattern, NULL, &opaque, err);
if (!ret)
goto out_free_pattern;
diff --git a/src/pattern.c b/src/pattern.c
index 084f73a..6c2a5ba 100644
--- a/src/pattern.c
+++ b/src/pattern.c
@@ -860,7 +860,6 @@
(*pattern)->val.tree = &expr->pattern_tree;
}
- (*pattern)->type = SMP_TYPES; /* unspecified type by default */
if (!expr->parse(args, *pattern, smp, &opaque, err))
return -1;