From: Arnaud Giersch Date: Wed, 10 Oct 2012 06:10:38 +0000 (+0200) Subject: Always initialize variable. X-Git-Tag: v3_8~92^2~12^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/201d2071f448214f15c7eddf1c431f5e8ea65869?ds=sidebyside Always initialize variable. --- diff --git a/examples/smpi/MM/2.5D_MM.c b/examples/smpi/MM/2.5D_MM.c index 514ac43af2..3edf8c3d96 100644 --- a/examples/smpi/MM/2.5D_MM.c +++ b/examples/smpi/MM/2.5D_MM.c @@ -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 */