소스 검색

Fix initialization in case there'd be no data at all

Samuel Thibault 10 년 전
부모
커밋
04855f8ec7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mpi/src/starpu_mpi_select_node.c

+ 1 - 1
mpi/src/starpu_mpi_select_node.c

@@ -42,7 +42,7 @@ int _starpu_mpi_select_node_with_most_R_data(int me, int nb_nodes, struct starpu
 	size_t *size_on_nodes;
 	size_t max_size;
 	int i;
-	int xrank;
+	int xrank = me;
 
 	(void)me;
 	size_on_nodes = (size_t *)calloc(1, nb_nodes * sizeof(size_t));