A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a test to avoid calling the function SIMIX_action_cancel with a NULL parameter.
[simgrid.git]
/
src
/
simix
/
smx_network.c
diff --git
a/src/simix/smx_network.c
b/src/simix/smx_network.c
index
40face3
..
bdca461
100644
(file)
--- a/
src/simix/smx_network.c
+++ b/
src/simix/smx_network.c
@@
-282,7
+282,8
@@
static inline void SIMIX_communication_wait_for_completion(smx_comm_t comm, doub
*/
XBT_INLINE void SIMIX_communication_cancel(smx_comm_t comm)
{
- SIMIX_action_cancel(comm->act);
+ if (comm->act)
+ SIMIX_action_cancel(comm->act);
}
/**