CHECK_PTR

This commit is contained in:
c9s 2014-06-04 16:22:28 +08:00
parent dc61d54530
commit c5dce1d232

View file

@ -48,6 +48,7 @@ node * r3_tree_create(int cap) {
CHECK_PTR(n);
n->edges = (edge**) zmalloc( sizeof(edge*) * cap );
CHECK_PTR(n->edges);
n->edge_len = 0;
n->edge_cap = cap;