Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
only test 5th field if 4th exists
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 19 Jan 2016 00:06:00 +0000 (01:06 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Tue, 19 Jan 2016 00:06:00 +0000 (01:06 +0100)
src/smpi/smpi_replay.c

index 36e05f3..ef4cc43 100644 (file)
@@ -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 {