details:
- fix on multiple calls to TRACE_smpi_set_category(NULL)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8197
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
{
char processid[100];
snprintf (processid, 100, "%p", proc);
{
char processid[100];
snprintf (processid, 100, "%p", proc);
- xbt_dict_remove (current_task_category, processid);
+ if (xbt_dict_get_or_null (current_task_category, processid) != NULL){
+ xbt_dict_remove (current_task_category, processid);
+ }
}
void __TRACE_msg_category_set (smx_process_t proc, m_task_t task)
}
void __TRACE_msg_category_set (smx_process_t proc, m_task_t task)