From 9ce4f8903c6a9891f5be7913556a4b4e08f27a23 Mon Sep 17 00:00:00 2001 From: Lucas Mello Schnorr Date: Tue, 19 Jan 2016 08:55:03 -0200 Subject: [PATCH] [action replay] check second optional parameter before parsing datatype in gatherv --- src/smpi/smpi_replay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1