summaryrefslogtreecommitdiffstats
path: root/src/H5FS.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-01-06 21:15:55 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-01-06 21:15:55 (GMT)
commit8e9ce522e942cc3b1b516df4ecd66e4b6428de8f (patch)
treec92fa1176198b63c4466e498641b5ce98fdc171b /src/H5FS.c
parent77b029074ed1bf582cf18ebe5651c0fd2c6452bc (diff)
downloadhdf5-8e9ce522e942cc3b1b516df4ecd66e4b6428de8f.zip
hdf5-8e9ce522e942cc3b1b516df4ecd66e4b6428de8f.tar.gz
hdf5-8e9ce522e942cc3b1b516df4ecd66e4b6428de8f.tar.bz2
[svn-r9760] Purpose:
Bug fix. Description: threadsafe test (ttsafe) would seg-fault if --disable-production --enable-debug mode is used. Reason was that the fstack.nused field was not initialized when created. Solution: Init new fstack.nused with 0. Platforms tested: Tested in mir, using both production/nodebug and development/debug modes. Did not "h5committested" as change is trivial and limited to threadsafe mode.
Diffstat (limited to 'src/H5FS.c')
-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);