weakref fix
authorOlivier Matz <zer0@droids-corp.org>
Thu, 3 Aug 2017 20:31:04 +0000 (22:31 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 3 Aug 2017 20:31:04 +0000 (22:31 +0200)
lib/ecoli_node_weakref.c

index 735f831..3e202d3 100644 (file)
@@ -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;
 }