mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r19594] 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.
This commit is contained in:
parent
ffbf295204
commit
ae3a33fc9c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user