From ca28b0953c6a303bce4753418a17166b5a796800 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Tue, 19 Jan 2016 01:06:00 +0100 Subject: [PATCH 1/1] only test 5th field if 4th exists --- 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 36e05f33a9..ef4cc43573 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -689,7 +689,7 @@ static void action_gather(const char *const *action) { int send_size = parse_double(action[2]); int recv_size = parse_double(action[3]); MPI_Datatype MPI_CURRENT_TYPE2; - if(action[5]) { + if(action[4] && action[5]) { MPI_CURRENT_TYPE=decode_datatype(action[5]); MPI_CURRENT_TYPE2=decode_datatype(action[6]); } else { -- 2.20.1