From 46480f4e2718f823bb016962c1656f0d4818070d Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 13 Feb 2012 10:37:32 +0100 Subject: [PATCH] Category should be unlinked from its current parent. --- src/xbt/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xbt/log.c b/src/xbt/log.c index 4bed85f582..47297d97a5 100644 --- a/src/xbt/log.c +++ b/src/xbt/log.c @@ -836,7 +836,7 @@ void xbt_log_parent_set(xbt_log_category_t cat, xbt_log_category_t parent) */ if (cat->threshold != xbt_log_priority_uninitialized) { - xbt_log_category_t *cpp = &parent->firstChild; + xbt_log_category_t *cpp = &cat->parent->firstChild; while (*cpp != cat && *cpp != NULL) { cpp = &(*cpp)->nextSibling; -- 2.20.1