Added sanity check in test in sssp_bfs()
This commit is contained in:
parent
837469c747
commit
aea7938f19
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue