Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initialize variable.
[simgrid.git] / teshsuite / smpi / type-struct / type-struct.c
index 4256885ffa897423338f1b6821558d9eb0f792ca..2a4b38dba7b3c2d73c6dc3a12d507d19422406ed 100644 (file)
 int main(int argc, char **argv)
 {
     int          rank;
-    struct { int a;int c; double b;int tab[2][3];} value;
+    struct {
+      int a;
+      int c;
+      double b;
+      int tab[2][3];
+    } value = {0};
     MPI_Datatype mystruct;
     int          blocklens[3];
     MPI_Aint     indices[3];