From: Arnaud Giersch Date: Mon, 13 Feb 2012 09:37:32 +0000 (+0100) Subject: Category should be unlinked from its current parent. X-Git-Tag: exp_20120216~19 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/46480f4e2718f823bb016962c1656f0d4818070d?ds=sidebyside Category should be unlinked from its current parent. --- 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;