Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Always initialize variable.
[simgrid.git] / examples / smpi / MM / 2.5D_MM.c
index 514ac43..3edf8c3 100644 (file)
@@ -19,7 +19,8 @@ double two_dot_five(
                     size_t m, size_t k, size_t n,
                     size_t Block_size, size_t group, size_t key,
                     size_t size_row, size_t size_col, size_t NB_groups ){
                     size_t m, size_t k, size_t n,
                     size_t Block_size, size_t group, size_t key,
                     size_t size_row, size_t size_col, size_t NB_groups ){
-  double *a,  *b,  *c, *res;
+  double *a,  *b,  *c;
+  double *res = NULL;
   /* Split the communicator into groups */
 
   /* Find out my identity in the default communicator */
   /* Split the communicator into groups */
 
   /* Find out my identity in the default communicator */