From c5dce1d23285991bb4c099af6c3db513144407f5 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 4 Jun 2014 16:22:28 +0800 Subject: [PATCH] CHECK_PTR --- src/node.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.c b/src/node.c index 6ae8ef2..a3f5858 100644 --- a/src/node.c +++ b/src/node.c @@ -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;