summaryrefslogtreecommitdiffstats
path: root/src/H5FS.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5FS.c')
-rw-r--r--src/H5FS.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5FS.c b/src/H5FS.c
index 9ec80de..c39d497 100644
--- a/src/H5FS.c
+++ b/src/H5FS.c
@@ -86,7 +86,9 @@ H5FS_get_stack(void)
fstack = pthread_getspecific(H5TS_funcstk_key_g);
if (!fstack) {
/* no associated value with current thread - create one */
- fstack = (H5FS_t *)H5MM_malloc(sizeof(H5FS_t));
+ /* Where is it freed? */
+ fstack = (H5FS_t *)H5MM_calloc(sizeof(H5FS_t));
+ fstack->nused = 0;
pthread_setspecific(H5TS_funcstk_key_g, (void *)fstack);
}