summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-07-20 22:24:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-07-20 22:24:13 (GMT)
commit63f00c56866c2a80f89da65db1d7f3368210ec83 (patch)
tree0c36bf3213a77ea3d6364617091cc4c32623585d
parent69c572e26a72923a55aab4c954487b65976b23a2 (diff)
downloadhdf5-63f00c56866c2a80f89da65db1d7f3368210ec83.zip
hdf5-63f00c56866c2a80f89da65db1d7f3368210ec83.tar.gz
hdf5-63f00c56866c2a80f89da65db1d7f3368210ec83.tar.bz2
[svn-r13991] Description:
Correct error in H5Gcreate() where using a non-zero local heap size hint would overwrite the default group creation property list with the non-zero size hint given, affecting all future groups created. Tested on: FreeBSD/32 6.2 (duty) w/check-vfd
-rw-r--r--src/H5Gdeprec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Gdeprec.c b/src/H5Gdeprec.c
index 69779ff..b94a365 100644
--- a/src/H5Gdeprec.c
+++ b/src/H5Gdeprec.c
@@ -180,8 +180,8 @@ H5Gcreate(hid_t loc_id, const char *name, size_t size_hint)
if((tmp_gcpl = H5P_copy_plist(gc_plist)) < 0)
HGOTO_ERROR(H5E_SYM, H5E_CANTGET, FAIL, "unable to copy the creation property list")
- /* Get the copy of the property list */
- if(NULL == (gc_plist = H5I_object(H5P_GROUP_CREATE_DEFAULT)))
+ /* Get pointer to the copied property list */
+ if(NULL == (gc_plist = H5I_object(tmp_gcpl)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list")
/* Get the group info property */