diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/tree.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/filter/tree.c b/filter/tree.c index 46d6e529..2bbc84bb 100644 --- a/filter/tree.c +++ b/filter/tree.c @@ -103,12 +103,7 @@ build_tree(struct f_tree *from) struct f_tree * f_new_tree(void) { - struct f_tree * ret; - ret = cfg_alloc(sizeof(struct f_tree)); - ret->left = ret->right = NULL; - ret->from.type = ret->to.type = T_VOID; - ret->from.val.i = ret->to.val.i = 0; - ret->data = NULL; + struct f_tree *ret = cfg_allocz(sizeof(struct f_tree)); return ret; } |