From: donassbr Date: Thu, 14 Jan 2010 15:57:25 +0000 (+0000) Subject: Verify NULL parameter before calling function. X-Git-Tag: SVN~723 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6b38cbd0c5f5fbc94459d3d42e2a081418a882ca 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 --- 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 */