Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add explicit initialization for the f77 field.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 19 Mar 2014 09:54:54 +0000 (10:54 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 19 Mar 2014 10:06:33 +0000 (11:06 +0100)
src/smpi/smpi_f77.c

index fa9a800..aa9af8c 100644 (file)
@@ -27,9 +27,9 @@ union u_smpi_common {
     integer _MPI_BOTTOM;
     integer _MPI_STATUS_IGNORE;
     integer _MPI_STATUSES_IGNORE;
-  } f90;                        /* with gftortran */
-  struct s_smpi_common *f77;    /* with f2c, remains NULL with gfortran */
-} smpi_;
+  } *f77;                       /* with f2c, remains NULL with gfortran */
+  struct s_smpi_common f90;     /* with gftortran */
+} smpi_ = { NULL };
 
 /* Convert between Fortran and C */
 #define F2C_ADDR(addr, val)                                             \