From: Frederic Suter Date: Tue, 19 Jan 2016 00:06:00 +0000 (+0100) Subject: only test 5th field if 4th exists X-Git-Tag: v3_13~1211^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ca28b0953c6a303bce4753418a17166b5a796800?hp=5e220930296cbfc2d9c4552c99b68a9865e4017e only test 5th field if 4th exists --- 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 {