merged with thkr-1.1-fix-0004
This commit is contained in:
commit
1f2e14df8c
1 changed files with 3 additions and 7 deletions
10
src/edge.c
10
src/edge.c
|
@ -86,20 +86,16 @@ void edge_add(edge_t *e) {
|
||||||
if (splay_insert(e->from->edge_tree, e)) {
|
if (splay_insert(e->from->edge_tree, e)) {
|
||||||
e->reverse = lookup_edge(e->to, e->from);
|
e->reverse = lookup_edge(e->to, e->from);
|
||||||
|
|
||||||
if(e->reverse) {
|
if(e->reverse)
|
||||||
if (e->reverse->reverse) {
|
|
||||||
logger(DEBUG_ALWAYS, LOG_ERR, "edge_add(): e->reverse->reverse should be NULL!");
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
e->reverse->reverse = e;
|
e->reverse->reverse = e;
|
||||||
}
|
|
||||||
if (!splay_insert(edge_weight_tree, e))
|
if (!splay_insert(edge_weight_tree, e))
|
||||||
logger(DEBUG_ALWAYS, LOG_ERR,
|
logger(DEBUG_ALWAYS, LOG_ERR,
|
||||||
"%s:%d: edge from: %s to: %s exists in edge_weight_tree",
|
"%s:%d: edge from: %s to: %s exists in edge_weight_tree",
|
||||||
__FUNCTION__, __LINE__, e->from->name, e->to->name);
|
__FUNCTION__, __LINE__, e->from->name, e->to->name);
|
||||||
} else {
|
} else {
|
||||||
logger(DEBUG_ALWAYS, LOG_ERR,
|
logger(DEBUG_ALWAYS, LOG_ERR,
|
||||||
"%s:%d: edge from: %s to: %s exists in from->edge_tree",
|
"%s:%d: edge from: %s to: %s exists in e->from->edge_tree",
|
||||||
__FUNCTION__, __LINE__, e->from->name, e->to->name);
|
__FUNCTION__, __LINE__, e->from->name, e->to->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue