summaryrefslogtreecommitdiffstats
path: root/src/H5Oattr.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2008-07-21 16:50:22 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2008-07-21 16:50:22 (GMT)
commite7037ad07213833582cf066b05f6dbf52c626ce6 (patch)
tree3938c5b0cbc343bbd4dad0f88c9d66ae971ad7fa /src/H5Oattr.c
parent60957dc6cfa069aa2809732479e004b7813a2054 (diff)
downloadhdf5-e7037ad07213833582cf066b05f6dbf52c626ce6.zip
hdf5-e7037ad07213833582cf066b05f6dbf52c626ce6.tar.gz
hdf5-e7037ad07213833582cf066b05f6dbf52c626ce6.tar.bz2
[svn-r15390] Last round of checkin introduced a bug. This checkin corrected it and made a few minor
changes. Last round of check in fixed the problem when an attribute was opened twice and data was written with one of the handles, the file didn't have the data. It happened because each handle had its own object structure, and the empty one overwrote the data with fill value. This is fixed by making some attribute information like the data be shared in the attribute structure. Tested on smirom, kagiso, and linew.
Diffstat (limited to 'src/H5Oattr.c')
-rw-r--r--src/H5Oattr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
index bf4c521..4bfeb3d 100644
--- a/src/H5Oattr.c
+++ b/src/H5Oattr.c
@@ -468,8 +468,6 @@ H5O_attr_size(const H5F_t UNUSED *f, const void *_mesg)
herr_t
H5O_attr_reset(void *_mesg)
{
- H5A_t *attr = (H5A_t *)_mesg;
-
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_attr_reset)
FUNC_LEAVE_NOAPI(SUCCEED)