summaryrefslogtreecommitdiffstats
path: root/src/H5Pdxpl.c
diff options
context:
space:
mode:
authorLeon Arber <larber@ncsa.uiuc.edu>2004-10-20 21:08:35 (GMT)
committerLeon Arber <larber@ncsa.uiuc.edu>2004-10-20 21:08:35 (GMT)
commit5ec05c10e8e9ab5b76d2cbfe86223db2da99bb4e (patch)
tree47e8566ad16a52f20eb74f45c5cd239b92bdfd73 /src/H5Pdxpl.c
parentb6c9d2afa7abfd92585923bdbf275f2c617ccdf6 (diff)
downloadhdf5-5ec05c10e8e9ab5b76d2cbfe86223db2da99bb4e.zip
hdf5-5ec05c10e8e9ab5b76d2cbfe86223db2da99bb4e.tar.gz
hdf5-5ec05c10e8e9ab5b76d2cbfe86223db2da99bb4e.tar.bz2
[svn-r9441] Purpose:
Code refactor Changed functionality of H5Pget_data_transform Description: Rewrote much of H5Ztrans.c to use macros, which cut down on the amount of code significantly. H5Pget_data_transform now allocates memory for the data transform string, copies the string into this memory, and returns this pointer to the user, instead of returning a pointer to the internal transform string stored by hdf. It is the user's responsibility to free this memory when they are done with it. Platforms tested: sol + eirene + copper Misc. update:
Diffstat (limited to 'src/H5Pdxpl.c')
-rw-r--r--src/H5Pdxpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Pdxpl.c b/src/H5Pdxpl.c
index 67dba0b..430c025 100644
--- a/src/H5Pdxpl.c
+++ b/src/H5Pdxpl.c
@@ -118,8 +118,8 @@ herr_t H5Pget_data_transform(hid_t plist_id, char** expression)
HGOTO_ERROR (H5E_PLIST, H5E_CANTSET, FAIL, "Error setting data transform expression");
/* Get the data transform string */
- *expression = H5Z_xform_extract_xform_str(data_xform_prop);
-
+ *expression = H5Z_xform_extract_xform_str(data_xform_prop);
+
done:
if(ret_value<0) {
if(data_xform_prop)