From b8c24388ece6f6c0fb25eac5ca4b7c0bda8d89c5 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Tue, 18 Jun 2019 12:27:51 -0700 Subject: Switched to HGOTO_DONE() in the links code. --- src/H5Glink.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() */ -- cgit v0.12