From: Lucas Mello Schnorr Date: Tue, 19 Jan 2016 10:55:03 +0000 (-0200) Subject: [action replay] check second optional parameter before parsing datatype in gatherv X-Git-Tag: v3_13~1207^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9ce4f8903c6a9891f5be7913556a4b4e08f27a23 [action replay] check second optional parameter before parsing datatype in gatherv --- diff --git a/src/smpi/smpi_replay.c b/src/smpi/smpi_replay.c index 3c3c922b9b..bee8307852 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -756,7 +756,7 @@ static void action_gatherv(const char *const *action) { int i=0,recv_sum=0; MPI_Datatype MPI_CURRENT_TYPE2; - if(action[4+comm_size]) { + if(action[4+comm_size] && action[5+comm_size]) { MPI_CURRENT_TYPE=decode_datatype(action[4+comm_size]); MPI_CURRENT_TYPE2=decode_datatype(action[5+comm_size]); } else {