Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Category should be unlinked from its current parent.
[simgrid.git] / src / xbt / log.c
index 4bed85f..47297d9 100644 (file)
@@ -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;