X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e8c5cb20de20aaaa99013053a6c556a59d4d2bb..b60aef4e2fea329ccaf96986006bdded72a61113:/src/surf/network_im.c diff --git a/src/surf/network_im.c b/src/surf/network_im.c index 3b1e091df1..38513f4e6f 100644 --- a/src/surf/network_im.c +++ b/src/surf/network_im.c @@ -781,9 +781,12 @@ static surf_action_t im_net_communicate(const char *src_name, /* LARGE PLATFORMS HACK: expand also with src->link and dst->link */ #ifdef HAVE_TRACING - action->src_name = xbt_strdup(src_name); - - action->dst_name = xbt_strdup(dst_name); + if (TRACE_is_active()) { + action->src_name = xbt_strdup(src_name); + action->dst_name = xbt_strdup(dst_name); + } else { + action->src_name = action->dst_name = NULL; + } #endif xbt_dynar_free(&route);