From 0b60a166de514be86232c435bacfaa1da0f841f9 Mon Sep 17 00:00:00 2001 From: thiery Date: Fri, 10 Dec 2010 14:54:31 +0000 Subject: [PATCH] Don't do anything if the category is NULL git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9136 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_user.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/simix/smx_user.c b/src/simix/smx_user.c index 7c39d30260..49b044dd63 100644 --- a/src/simix/smx_user.c +++ b/src/simix/smx_user.c @@ -700,6 +700,10 @@ void SIMIX_req_comm_wait(smx_action_t comm, double timeout) */ void SIMIX_req_set_category(smx_action_t action, const char *category) { + if (category == NULL) { + return; + } + smx_req_t req = SIMIX_req_mine(); req->call = REQ_SET_CATEGORY; -- 2.20.1