From d36da471a9921489100e8e717bdaa58df3b5be03 Mon Sep 17 00:00:00 2001 From: Mohamad Chaarawi Date: Wed, 25 Jul 2012 18:05:54 -0500 Subject: [svn-r22603] set return value in H5Rcreate --- src/H5R.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5R.c b/src/H5R.c index 365b645..af471ee 100644 --- a/src/H5R.c +++ b/src/H5R.c @@ -374,8 +374,8 @@ H5Rcreate(void *ref, hid_t loc_id, const char *name, H5R_type_t ref_type, hid_t HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "ID does not contain VOL information") /* create the ref through the VOL */ - if(H5VL_object_misc(obj, loc_params, vol_plugin, H5VL_REF_CREATE, H5_REQUEST_NULL, - ref, name, ref_type, space_id) < 0) + if(ret_value = H5VL_object_misc(obj, loc_params, vol_plugin, H5VL_REF_CREATE, H5_REQUEST_NULL, + ref, name, ref_type, space_id) < 0) HGOTO_ERROR(H5E_OHDR, H5E_LINKCOUNT, FAIL, "modifying object link count failed") done: -- cgit v0.12