Commit ca232fad authored by Rajeev Thakur's avatar Rajeev Thakur
Browse files

[svn-r5678] errcheck for null newtype

parent 7ffee98c
......@@ -83,6 +83,7 @@ int MPI_Type_create_hvector(int count,
MPID_Datatype_get_ptr(oldtype, datatype_ptr);
MPID_Datatype_valid_ptr(datatype_ptr, mpi_errno);
}
MPIR_ERRTEST_ARGNULL(newtype, "newtype", mpi_errno);
if (mpi_errno != MPI_SUCCESS) goto fn_fail;
}
MPID_END_ERROR_CHECKS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment