X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0de7df8a3bc351fdff4c4a3e106608b15c842143..def9d357a9211e9ee3d7bae418cb3e0fe8481c1e:/src/instr/jedule/jedule_platform.c?ds=sidebyside diff --git a/src/instr/jedule/jedule_platform.c b/src/instr/jedule/jedule_platform.c index 04d31b1277..6ffefdaea5 100644 --- a/src/instr/jedule/jedule_platform.c +++ b/src/instr/jedule/jedule_platform.c @@ -66,8 +66,7 @@ void jed_simgrid_create_container(jed_simgrid_container_t *container, char *name xbt_assert( name != NULL ); *container = (jed_simgrid_container_t)calloc(1,sizeof(s_jed_simgrid_container_t)); - (*container)->name = (char*)calloc((strlen(name)+1), sizeof(char)); - strcpy((*container)->name, name); + (*container)->name = xbt_strdup(name); (*container)->is_lowest = 0; (*container)->container_children = xbt_dynar_new(sizeof(jed_simgrid_container_t), NULL); (*container)->parent = NULL;