From: Olivier Matz Date: Thu, 3 Aug 2017 20:31:04 +0000 (+0200) Subject: weakref fix X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6d0795afb40c4b6ad4da705c3ebb69a071245ed8;p=protos%2Flibecoli.git weakref fix --- diff --git a/lib/ecoli_node_weakref.c b/lib/ecoli_node_weakref.c index 735f831..3e202d3 100644 --- a/lib/ecoli_node_weakref.c +++ b/lib/ecoli_node_weakref.c @@ -93,7 +93,8 @@ int ec_node_weakref_set(struct ec_node *gen_node, struct ec_node *child) node->child = child; child->parent = gen_node; - TAILQ_INSERT_TAIL(&gen_node->children, child, next); // XXX really needed? + // XXX else it breaks the dump() + //TAILQ_INSERT_TAIL(&gen_node->children, child, next); // XXX really needed? return 0; }