summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-09-12 15:30:32 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-09-12 15:30:32 (GMT)
commit99e331190948cab9e3f2ecc539af421c3beecfcf (patch)
treea441b772d90317db5ae23799baaca981cfccea1c /src/H5A.c
parentd3a12e1058e9afcb77b265a88690f1d3d5190fd7 (diff)
downloadhdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.zip
hdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.tar.gz
hdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.tar.bz2
[svn-r12662] Description:
Whitespace/formatting/compiler warning cleanup. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5A.c')
-rw-r--r--src/H5A.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 6135b91..24e27b4 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -282,7 +282,7 @@ H5A_create(const H5G_loc_t *loc, const char *name, const H5T_t *type,
}
/* Copy the attribute name */
- attr->name = HDstrdup(name);
+ attr->name = H5MM_xstrdup(name);
/* Copy the attribute's datatype */
attr->dt = H5T_copy(type, H5T_COPY_ALL);
@@ -1344,7 +1344,7 @@ H5A_rename(H5O_loc_t *loc, const char *old_name, const char *new_name, hid_t dxp
/* Copy the attribute name. */
if(found_attr.name)
HDfree(found_attr.name);
- found_attr.name = HDstrdup(new_name);
+ found_attr.name = H5MM_xstrdup(new_name);
if(!found_attr.name)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "String copy failed")
@@ -1585,7 +1585,7 @@ H5A_copy(H5A_t *_new_attr, const H5A_t *old_attr, unsigned update_flags)
new_attr->obj_opened = FALSE;
/* Copy the guts of the attribute */
- new_attr->name = HDstrdup(old_attr->name);
+ new_attr->name = H5MM_xstrdup(old_attr->name);
new_attr->dt = H5T_copy(old_attr->dt, H5T_COPY_ALL);
new_attr->ds = H5S_copy(old_attr->ds, FALSE);
} /* end if */