From ae3a33fc9c5d50d679565e5d80cee52e75712f93 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 13 Oct 2010 19:00:30 -0500 Subject: [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. --- src/H5Dint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5Dint.c b/src/H5Dint.c index 8782f58..947c0fe 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) { -- cgit v0.12