From: Lucas Mello Schnorr Date: Tue, 19 Jan 2016 10:54:34 +0000 (-0200) Subject: [action replay] fix allgather optional parameter parsing X-Git-Tag: v3_13~1207^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/dbe5c2c39eb145a34d0618e3ba4d6d3c3d52f9e1 [action replay] fix allgather optional parameter parsing --- diff --git a/src/smpi/smpi_replay.c b/src/smpi/smpi_replay.c index 1f2d9a131f..3c3c922b9b 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -884,9 +884,9 @@ static void action_allgather(const char *const *action) { MPI_Datatype MPI_CURRENT_TYPE2; - if(action[4]) { - MPI_CURRENT_TYPE = decode_datatype(action[3]); - MPI_CURRENT_TYPE2 = decode_datatype(action[4]); + if(action[4] && action[5]) { + MPI_CURRENT_TYPE = decode_datatype(action[4]); + MPI_CURRENT_TYPE2 = decode_datatype(action[5]); } else { MPI_CURRENT_TYPE = MPI_DEFAULT_TYPE; MPI_CURRENT_TYPE2 = MPI_DEFAULT_TYPE;