1
1

- add parameter check for NULL pointer

This commit was SVN r15697.
Этот коммит содержится в:
Sven Stork 2007-07-31 09:01:39 +00:00
родитель d6a676b29e
Коммит 27422e05ac

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

@ -57,6 +57,11 @@ int MPI_Dims_create(int nnodes, int ndims, int *dims)
if (MPI_PARAM_CHECK) {
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
if (NULL == dims) {
return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD,
MPI_ERR_ARG, FUNC_NAME);
}
if (1 > ndims) {
return OMPI_ERRHANDLER_INVOKE (MPI_COMM_WORLD,
MPI_ERR_DIMS, FUNC_NAME);