From 6b38cbd0c5f5fbc94459d3d42e2a081418a882ca Mon Sep 17 00:00:00 2001 From: donassbr Date: Thu, 14 Jan 2010 15:57:25 +0000 Subject: [PATCH] Verify NULL parameter before calling function. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7007 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index bdca46119c..2aa4773448 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -246,7 +246,7 @@ static inline void SIMIX_communication_wait_for_completion(smx_comm_t comm, doub DEBUG1("Communication timeout! %p", comm); if(comm->act && SIMIX_action_get_state(comm->act) == SURF_ACTION_RUNNING) SIMIX_communication_cancel(comm); - else + else if (comm->rdv) SIMIX_rdv_remove(comm->rdv, comm); /* Make sure that everyone sleeping on that semaphore is awake, and that nobody will ever block on it */ -- 2.20.1