Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Change interface for elements_father, and avoid to allocate a dynar.
[simgrid.git] / src / instr / instr_simdag.c
index 96b5bfe..dc7c556 100644 (file)
@@ -24,8 +24,7 @@ void TRACE_sd_set_task_category(SD_task_t task, const char *category)
 {
   if (!TRACE_is_active())
     return;
-  task->category = xbt_new(char, strlen(category) + 1);
-  strcpy(task->category, category);
+  task->category = xbt_strdup (category);
 }
 
 #endif /* HAVE_TRACING */