From ccc0a86055f58d796398f25f850dffed91174dff Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 4 Oct 2013 22:59:48 +0200 Subject: [PATCH] Empty status when request is NULL. --- src/smpi/smpi_pmpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smpi/smpi_pmpi.c b/src/smpi/smpi_pmpi.c index e7b5d440c1..f9a06a5ce4 100644 --- a/src/smpi/smpi_pmpi.c +++ b/src/smpi/smpi_pmpi.c @@ -1378,6 +1378,7 @@ int PMPI_Test(MPI_Request * request, int *flag, MPI_Status * status) retval = MPI_ERR_ARG; } else if (*request == MPI_REQUEST_NULL) { *flag= TRUE; + smpi_empty_status(status); retval = MPI_ERR_REQUEST; } else { *flag = smpi_mpi_test(request, status); -- 2.20.1