From ce4095af3521b5ee4379a02217b7e5f415c00d2c Mon Sep 17 00:00:00 2001 From: caasi Huang Date: Sat, 14 Jun 2014 00:55:24 +0800 Subject: [PATCH] initialize node.data --- src/node.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.c b/src/node.c index b6d5951..cccfba1 100644 --- a/src/node.c +++ b/src/node.c @@ -60,6 +60,7 @@ node * r3_tree_create(int cap) { n->combined_pattern = NULL; n->pcre_pattern = NULL; n->pcre_extra = NULL; + n->data = NULL; return n; } @@ -468,6 +469,7 @@ node * r3_node_create() { n->combined_pattern = NULL; n->pcre_pattern = NULL; n->pcre_extra = NULL; + n->data = NULL; return n; }