From 6d0795afb40c4b6ad4da705c3ebb69a071245ed8 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 3 Aug 2017 22:31:04 +0200 Subject: [PATCH] weakref fix --- lib/ecoli_node_weakref.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5