diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-10-13 23:36:03 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-10-13 23:36:03 (GMT) |
commit | 8ed77258a3bcd171397dec36fddc08078e842cec (patch) | |
tree | 4ebf8232643b14327ccb431ab8a95f85786619ba /src/H5Dint.c | |
parent | 726463178d08dd86de68f90bcf7ca0183571ed79 (diff) | |
download | hdf5-8ed77258a3bcd171397dec36fddc08078e842cec.zip hdf5-8ed77258a3bcd171397dec36fddc08078e842cec.tar.gz hdf5-8ed77258a3bcd171397dec36fddc08078e842cec.tar.bz2 |
[svn-r19593] Bug fix: H5D_create should return NULL on failure but one of return code was
FAILED. Rejected by the xlc compiler.
Solution: changed it to reutrn NULL.
Tested: UP make passed. serial passed but some parallel tests failed. The
parallel tests failed were not related to this fix.
Diffstat (limited to 'src/H5Dint.c')
-rw-r--r-- | src/H5Dint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c index ad42a51..2eaf9a1 100644 --- a/src/H5Dint.c +++ b/src/H5Dint.c @@ -1064,7 +1064,7 @@ done: HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release datatype") if(H5F_addr_defined(new_dset->oloc.addr)) { if(H5O_dec_rc_by_loc(&(new_dset->oloc), dxpl_id) < 0) - HDONE_ERROR(H5E_DATASET, H5E_CANTDEC, FAIL, "unable to decrement refcount on newly created object") + HDONE_ERROR(H5E_DATASET, H5E_CANTDEC, NULL, "unable to decrement refcount on newly created object") if(H5O_close(&(new_dset->oloc)) < 0) HDONE_ERROR(H5E_DATASET, H5E_CLOSEERROR, NULL, "unable to release object header") if(file) { |