From b35b6c0411cd96f7371721ae4aafbaae927c557e Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 20 Aug 2002 15:29:30 -0500 Subject: [svn-r5881] Purpose: bug fix Description: Last change of FUNC_ENTER to FUNC_ENTER_NOAPI did not include definition of variable ret_value and label done. Solution: Added the missing ret_value and label done. Not sure if the logic is correct since the function will abort if some assert fails. This fix only takes care of the syntax error. Platforms tested: eirene(pp). Did not test on other machine since the syntax fix is pretty simple. --- src/H5B.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/H5B.c b/src/H5B.c index 1348f37..a4d3bfe 100644 --- a/src/H5B.c +++ b/src/H5B.c @@ -2143,6 +2143,7 @@ H5B_assert(H5F_t *f, haddr_t addr, const H5B_class_t *type, void *udata) int i, ncell, cmp; static int ncalls = 0; herr_t status; + herr_t ret_value=SUCCEED; /* Return value */ /* A queue of child data */ struct child_t { @@ -2234,6 +2235,7 @@ H5B_assert(H5F_t *f, haddr_t addr, const H5B_class_t *type, void *udata) head = tmp; } - FUNC_LEAVE(SUCCEED); +done: + FUNC_LEAVE(ret_value); } #endif /* H5B_DEBUG */ -- cgit v0.12