From: Arnaud Giersch Date: Tue, 11 Mar 2014 15:39:54 +0000 (+0100) Subject: Fix dereference of a null pointer. X-Git-Tag: v3_11~105^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9a5574731344888766ce5e6c58c957d6513a10a1?ds=sidebyside Fix dereference of a null pointer. --- diff --git a/src/msg/msg_gos.c b/src/msg/msg_gos.c index b80ae0f7d1..dbf0eac49c 100644 --- a/src/msg/msg_gos.c +++ b/src/msg/msg_gos.c @@ -430,12 +430,10 @@ msg_comm_t MSG_task_isend_internal(msg_task_t task, const char *alias, } #ifdef HAVE_TRACING - if (TRACE_is_enabled()) { - simcall_set_category(comm->s_comm, task->category); - } -#endif + if (TRACE_is_enabled()) { + simcall_set_category(act, task->category); + } -#ifdef HAVE_TRACING if (call_end) TRACE_msg_task_put_end(); #endif