diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2005-01-06 21:16:16 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2005-01-06 21:16:16 (GMT) |
commit | 9dba568fc3cc1cb69011a457b45f5683deb82016 (patch) | |
tree | 49536b8a1228ddd6e25b2a5d2c8432d4545b25ad /src/H5FS.c | |
parent | 46bfff070f7b4c2056f116d56272121422424000 (diff) | |
download | hdf5-9dba568fc3cc1cb69011a457b45f5683deb82016.zip hdf5-9dba568fc3cc1cb69011a457b45f5683deb82016.tar.gz hdf5-9dba568fc3cc1cb69011a457b45f5683deb82016.tar.bz2 |
[svn-r9761] 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 development/debug mode.
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); |