Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initialize variables, and make valgrind happy.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 30 Nov 2012 15:23:18 +0000 (16:23 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 3 Dec 2012 10:12:38 +0000 (11:12 +0100)
teshsuite/smpi/hvector_test.c
teshsuite/smpi/vector_test.c

index 86d1a403d33327aa0881e3e4c49bfb091b704e2c..da16a748ab57d789d86d40dcc61c6af9e68087a8 100644 (file)
@@ -5,7 +5,7 @@
 int main(int argc, char **argv) {
 
   int rank, i, j;
 int main(int argc, char **argv) {
 
   int rank, i, j;
-  double a[SIZE][SIZE];
+  double a[SIZE][SIZE] = {{0}};
 
   MPI_Datatype columntype;
 
 
   MPI_Datatype columntype;
 
index 8fd729f1f146cc4291aa212472e1f82dcdfde38d..ce84eac7fd5a0900670981bfdd1c857b3bb5405e 100644 (file)
@@ -5,7 +5,7 @@
 int main(int argc, char **argv) {
 
   int rank, i, j;
 int main(int argc, char **argv) {
 
   int rank, i, j;
-  double a[SIZE][SIZE];
+  double a[SIZE][SIZE] = {{0}};
 
   MPI_Datatype columntype;
 
 
   MPI_Datatype columntype;