1
1

mpi/c: check for valid datatype in file_get_type_extend

the interface if file_get_type_extent did not check
whether the input datatype is valid or not.

Makes the e_get_type_extend_2 test from the ibm testsuite pass.

Signed-off-by: Edgar Gabriel <egabriel@central.uh.edu>
Этот коммит содержится в:
Edgar Gabriel 2018-06-06 14:36:05 -05:00
родитель 14bd114973
Коммит 5f1e88d265

Просмотреть файл

@ -54,7 +54,10 @@ int MPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype,
fh = MPI_FILE_NULL;
} else if (NULL == extent) {
rc = MPI_ERR_ARG;
} else {
OMPI_CHECK_DATATYPE_FOR_SEND(rc, datatype, 1);
}
OMPI_ERRHANDLER_CHECK(rc, fh, rc, FUNC_NAME);
}