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 86d1a40..da16a74 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 8fd729f..ce84eac 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;