Merge pull request #60 from caasi/patch-1

initialize node.data
This commit is contained in:
Yo-An Lin 2014-06-14 05:51:59 +08:00
commit 9eab3619c1

View file

@ -60,6 +60,7 @@ node * r3_tree_create(int cap) {
n->combined_pattern = NULL; n->combined_pattern = NULL;
n->pcre_pattern = NULL; n->pcre_pattern = NULL;
n->pcre_extra = NULL; n->pcre_extra = NULL;
n->data = NULL;
return n; return n;
} }
@ -468,6 +469,7 @@ node * r3_node_create() {
n->combined_pattern = NULL; n->combined_pattern = NULL;
n->pcre_pattern = NULL; n->pcre_pattern = NULL;
n->pcre_extra = NULL; n->pcre_extra = NULL;
n->data = NULL;
return n; return n;
} }