Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix unintialized variables
authorGabriel Corona <gabriel.corona@loria.fr>
Thu, 1 Oct 2015 13:50:40 +0000 (15:50 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Thu, 1 Oct 2015 13:50:42 +0000 (15:50 +0200)
src/smpi/colls/gather-mvapich.c

index 561e757..033cdb6 100644 (file)
@@ -140,7 +140,7 @@ int smpi_coll_tuned_gather_mvapich2_two_level(void *sendbuf,
     int leader_root, leader_of_root;
     MPI_Status status;
     MPI_Aint sendtype_extent = 0, recvtype_extent = 0;  /* Datatype extent */
     int leader_root, leader_of_root;
     MPI_Status status;
     MPI_Aint sendtype_extent = 0, recvtype_extent = 0;  /* Datatype extent */
-    MPI_Aint true_lb, sendtype_true_extent, recvtype_true_extent;
+    MPI_Aint true_lb = 0, sendtype_true_extent = 0, recvtype_true_extent = 0;
     MPI_Comm shmem_comm, leader_comm;
     void* tmp_buf = NULL;
     
     MPI_Comm shmem_comm, leader_comm;
     void* tmp_buf = NULL;