summaryrefslogtreecommitdiffstats
path: root/src/H5FDfamily.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-08-20 17:47:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-08-20 17:47:48 (GMT)
commit7646297a822b7304b8b846650e243635553a7b38 (patch)
tree31b9dd7d26a2c62a9aad0d5a47703b95440f813c /src/H5FDfamily.c
parent300e95b7d0ab93620ea525870452731dcd7afaa2 (diff)
downloadhdf5-7646297a822b7304b8b846650e243635553a7b38.zip
hdf5-7646297a822b7304b8b846650e243635553a7b38.tar.gz
hdf5-7646297a822b7304b8b846650e243635553a7b38.tar.bz2
[svn-r7385] Purpose:
Bug fix Description: Correct a bug which was incrementing the incorrect driver ID of a file driver and also no saving the correct driver ID for the newly opened file. Platforms tested: FreeBSD 4.8 (sleipnir) too minor for h5committest
Diffstat (limited to 'src/H5FDfamily.c')
-rw-r--r--src/H5FDfamily.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c
index 0b14304..0731f5d 100644
--- a/src/H5FDfamily.c
+++ b/src/H5FDfamily.c
@@ -546,8 +546,10 @@ H5FD_family_open(const char *name, unsigned flags, hid_t fapl_id,
if(NULL == (plist = H5I_object(fapl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list");
fa = H5P_get_driver_info(plist);
- if(fa->memb_fapl_id==H5P_FILE_ACCESS_DEFAULT)
- H5I_inc_ref(file->memb_fapl_id);
+ if(fa->memb_fapl_id==H5P_FILE_ACCESS_DEFAULT) {
+ H5I_inc_ref(fa->memb_fapl_id);
+ file->memb_fapl_id = fa->memb_fapl_id;
+ } /* end if */
else {
if(NULL == (plist = H5I_object(fa->memb_fapl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list");