Added sanity check in test in sssp_bfs()

This commit is contained in:
thorkill 2015-07-05 00:31:01 +02:00
parent 837469c747
commit aea7938f19

View file

@ -135,6 +135,10 @@ static void sssp_bfs(void) {
/* Clear visited status on nodes */
if (!node_tree) {
logger(DEBUG_ALWAYS, LOG_ERR, "sssp_bfs(): node_tree == NULL. aborting!");
abort();
}
for splay_each(node_t, n, node_tree) {
n->status.visited = false;
n->status.indirect = true;