core/graph: fix SEGFAULT on some "complex" functions

This commit is contained in:
Riccardo Schirone 2015-11-23 14:06:22 +01:00 committed by pancake
parent 8f34d0cf83
commit d47216b349

View File

@ -552,7 +552,7 @@ static void create_layers (RAGraph *g) {
//FIXME how to handle properly this error ret2libc?
continue;
}
g->layers[i].nodes = R_NEWS (RGraphNode *,
g->layers[i].nodes = R_NEWS0 (RGraphNode *,
1 + g->layers[i].n_nodes);
g->layers[i].position = 0;
}