Browse Source

mpi/tests/mpi_reduction.c: initialize memory

Nathalie Furmento 11 years ago
parent
commit
1071eb99e2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mpi/tests/mpi_reduction.c

+ 1 - 0
mpi/tests/mpi_reduction.c

@@ -111,6 +111,7 @@ int main(int argc, char **argv)
 	handles = (starpu_data_handle_t *) malloc(nb_elements*sizeof(handles[0]));
 	for(x = 0; x < nb_elements; x+=step)
 	{
+		handles[x] = NULL;
 		int mpi_rank = my_distrib(x/step, size);
 		if (mpi_rank == my_rank)
 		{