summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index 20d7da4..e2ecb89 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -235,7 +235,7 @@ H5_init_thread(void)
FUNC_ENTER_INIT(H5_init_thread, NULL, FAIL);
/* Add the "thread termination" routine to the exit chain */
- if (H5_add_exit(&H5_term_thread) == FAIL)
+ if (H5_add_exit(&H5_term_thread)<0)
HRETURN_ERROR(H5E_FUNC, H5E_CANTINIT, FAIL,
"unable to set thread atexit function");