summaryrefslogtreecommitdiffstats
path: root/src/H5CS.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2003-07-26 02:55:47 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2003-07-26 02:55:47 (GMT)
commit0d22a663df367ada055cb3695186c669e1dd6d5e (patch)
tree9a3c6588411b63b90ec5d86f65032c0f373eb4e2 /src/H5CS.c
parentb4b2b55d33be1c4f1c33aaf58294281a93b7da39 (diff)
downloadhdf5-0d22a663df367ada055cb3695186c669e1dd6d5e.zip
hdf5-0d22a663df367ada055cb3695186c669e1dd6d5e.tar.gz
hdf5-0d22a663df367ada055cb3695186c669e1dd6d5e.tar.bz2
[svn-r7265] *** empty log message ***
Diffstat (limited to 'src/H5CS.c')
-rw-r--r--src/H5CS.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5CS.c b/src/H5CS.c
index 9ec80de..c39d497 100644
--- a/src/H5CS.c
+++ b/src/H5CS.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);
}