summaryrefslogtreecommitdiffstats
path: root/src/H5CS.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5CS.c')
-rw-r--r--src/H5CS.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5CS.c b/src/H5CS.c
index 6543fc5..77bc3d7 100644
--- a/src/H5CS.c
+++ b/src/H5CS.c
@@ -87,6 +87,7 @@ H5FS_get_stack(void)
/* no associated value with current thread - create one */
fstack = (H5FS_t *)HDmalloc(sizeof(H5FS_t)); /* Don't use H5MM_malloc() here, it causes infinite recursion */
pthread_setspecific(H5TS_funcstk_key_g, (void *)fstack);
+ fstack->nused=0;
}
FUNC_LEAVE_NOAPI_NOFS(fstack);