From: Marion Guthmuller Date: Mon, 24 Feb 2014 16:03:37 +0000 (+0100) Subject: model-checker : check if action not NULL before using it X-Git-Tag: v3_11~199^2~2^2~19^2~8 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c938dd8ed16398a3ab62eb83071bfe2ca4f6a91c model-checker : check if action not NULL before using it --- diff --git a/src/smpi/smpi_base.c b/src/smpi/smpi_base.c index a6a3c57dc5..2597663ff5 100644 --- a/src/smpi/smpi_base.c +++ b/src/smpi/smpi_base.c @@ -763,7 +763,7 @@ void smpi_mpi_wait(MPI_Request * request, MPI_Status * status) } #ifdef HAVE_MC - if(MC_is_active()) + if(MC_is_active() && (*request)->action) (*request)->action->comm.dst_data = NULL; // dangling pointer : dst_data is freed with a wait, need to set it to NULL for system state comparison #endif