summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5.c b/src/H5.c
index 5c5f3ad..6f810bf 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -318,11 +318,10 @@ H5dont_atexit(void)
H5TRACE0("e","");
if (dont_atexit_g)
- HGOTO_DONE(FAIL);
+ ret_value=FAIL;
+ else
+ dont_atexit_g = TRUE;
- dont_atexit_g = TRUE;
-
-done:
FUNC_LEAVE_API(ret_value);
}