diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-08 00:20:57 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-08 00:20:57 (GMT) |
commit | d612aa916b0da818d288cdf4f7e6b39174b3bd61 (patch) | |
tree | e262f519846308f698a7629c23c52de4cae7fde3 /src | |
parent | 8d8f365711cd9c5bb27a7db31d986dad779506f6 (diff) | |
download | hdf5-d612aa916b0da818d288cdf4f7e6b39174b3bd61.zip hdf5-d612aa916b0da818d288cdf4f7e6b39174b3bd61.tar.gz hdf5-d612aa916b0da818d288cdf4f7e6b39174b3bd61.tar.bz2 |
[svn-r17611] Bug fix (ID 1628):
There was a typo in the H5Pget_preserve that it was returning the wrong value.
Fixed. Also added a test in test/cmpd_dset.c to verify the correctness of
H5Pset_preserve and H5Pget_preserve.
Tested:
h5committest plus jam serial.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Pdxpl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Pdxpl.c b/src/H5Pdxpl.c index efbdfe7..aab8b57 100644 --- a/src/H5Pdxpl.c +++ b/src/H5Pdxpl.c @@ -839,7 +839,7 @@ H5Pget_preserve(hid_t plist_id) HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID") /* Get value */ - if (H5P_get(plist,H5D_XFER_BKGR_BUF_NAME,&need_bkg)<0) + if (H5P_get(plist,H5D_XFER_BKGR_BUF_TYPE_NAME,&need_bkg)<0) HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "unable to get value") /* Set return value */ |