summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5FS.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5FS.c b/src/H5FS.c
index 6543fc5..77bc3d7 100644
--- a/src/H5FS.c
+++ b/src/H5FS.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);