Skip to content

Commit 77d7617

Browse files
authored
Merge pull request open-mpi#12199 from mkurnosov/mpi-startall-null-requests
MPI_Startall: avoid returning MPI_ERR_REQUEST on NULL requests and zero count
2 parents e5dbcf8 + 554a397 commit 77d7617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mpi/c/startall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int MPI_Startall(int count, MPI_Request requests[])
5959
if ( MPI_PARAM_CHECK ) {
6060
int rc = MPI_SUCCESS;
6161
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
62-
if (NULL == requests) {
62+
if ((NULL == requests) && (0 != count)) {
6363
rc = MPI_ERR_REQUEST;
6464
} else if (count < 0) {
6565
rc = MPI_ERR_ARG;

0 commit comments

Comments
 (0)