summaryrefslogtreecommitdiffstats
path: root/src/H5Glink.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-18 19:27:51 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-18 19:27:51 (GMT)
commitb8c24388ece6f6c0fb25eac5ca4b7c0bda8d89c5 (patch)
tree476c81b03d30e75e5c528fd8c55c34870dbd79b1 /src/H5Glink.c
parentea966597d513e1df8feb96887cd51aa0e48c85ba (diff)
downloadhdf5-b8c24388ece6f6c0fb25eac5ca4b7c0bda8d89c5.zip
hdf5-b8c24388ece6f6c0fb25eac5ca4b7c0bda8d89c5.tar.gz
hdf5-b8c24388ece6f6c0fb25eac5ca4b7c0bda8d89c5.tar.bz2
Switched to HGOTO_DONE() in the links code.
Diffstat (limited to 'src/H5Glink.c')
-rw-r--r--src/H5Glink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Glink.c b/src/H5Glink.c
index 89f0266..04ccbc5 100644
--- a/src/H5Glink.c
+++ b/src/H5Glink.c
@@ -417,6 +417,8 @@ herr_t
H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type,
H5_iter_order_t order)
{
+ herr_t ret_value = SUCCEED;
+
FUNC_ENTER_PACKAGE_NOERR
/* Sanity check */
@@ -424,7 +426,7 @@ H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type,
/* Can't sort when empty since the links table will be NULL */
if(0 == ltable->nlinks)
- return SUCCEED;
+ HGOTO_DONE(ret_value);
/* This should never be NULL if the number of links is non-zero */
HDassert(ltable->lnks);
@@ -448,6 +450,7 @@ H5G__link_sort_table(H5G_link_table_t *ltable, H5_index_t idx_type,
HDassert(order == H5_ITER_NATIVE);
} /* end else */
+done:
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5G__link_sort_table() */