ソースを参照

mpi/src: make sure psize is initialised with the proper value

Nathalie Furmento 12 年 前
コミット
23c7b24def
共有1 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 2 1
      mpi/src/starpu_mpi.c

+ 2 - 1
mpi/src/starpu_mpi.c

@@ -149,7 +149,8 @@ static void _starpu_mpi_isend_size_func(struct _starpu_mpi_req *req)
 	}
 	else
 	{
-		ssize_t psize;
+		ssize_t psize = -1;
+		int ret;
 
 		// Do not pack the data, just try to find out the size
 		starpu_handle_pack_data(req->data_handle, NULL, &psize);