]> git.droids-corp.org - protos/libecoli.git/commitdiff
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 735f831938ecab1f146dae068bb8a8fce1d5d612..3e202d3e301187e4d4211429f1299e5270ca51ff 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;
 }