Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Always initialize variable.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 10 Oct 2012 06:10:38 +0000 (08:10 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 10 Oct 2012 06:10:38 +0000 (08:10 +0200)
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 ){
-  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 */