diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-04-15 00:27:11 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2003-04-15 00:27:11 (GMT) |
commit | 28d25203415f441930fc459db29e87b7116479da (patch) | |
tree | 4eed867e742c129f5933e66e6e236ccb55837ea5 /src/H5F.c | |
parent | 03b8054a7cacb5d39a4347381b3149a976d75505 (diff) | |
download | hdf5-28d25203415f441930fc459db29e87b7116479da.zip hdf5-28d25203415f441930fc459db29e87b7116479da.tar.gz hdf5-28d25203415f441930fc459db29e87b7116479da.tar.bz2 |
[svn-r6672] Purpose:
Bug Fix
Description:
When calling "H5F_get_access_plist" after setting the FAPL to a multi
driver, and then trying to get the multi driver back, it resulted in
returing a "NULL" value instead of the driver.
Solution:
The stuff at the location pointed to by the driver was being stored
into the property list and not the pointer to the driver itself.
Changed the "H5P_set" code so that it stores the pointer instead of
the driver...(Added an "&" in from of the "driver_info" variable).
Platforms tested:
Arabica (Fortran)
Burrwhite (Fortran & C++)
Modi4 (Fortran & Parallel)
Misc. update:
Diffstat (limited to 'src/H5F.c')
-rw-r--r-- | src/H5F.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -907,7 +907,7 @@ H5Fget_access_plist(hid_t file_id) HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set file driver ID"); driver_info = H5FD_fapl_get(f->shared->lf); - if(driver_info != NULL && H5P_set(new_plist, H5F_ACS_FILE_DRV_INFO_NAME, driver_info) < 0) + if(driver_info != NULL && H5P_set(new_plist, H5F_ACS_FILE_DRV_INFO_NAME, &driver_info) < 0) HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set file driver info"); if(f->shared->fc_degree == H5F_CLOSE_DEFAULT && H5P_set(new_plist, H5F_CLOSE_DEGREE_NAME, &(f->shared->lf->cls->fc_degree)) < 0) { |