diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-01-06 21:15:55 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-01-06 21:15:55 (GMT) |
commit | 8e9ce522e942cc3b1b516df4ecd66e4b6428de8f (patch) | |
tree | c92fa1176198b63c4466e498641b5ce98fdc171b /src/H5FS.c | |
parent | 77b029074ed1bf582cf18ebe5651c0fd2c6452bc (diff) | |
download | hdf5-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |