summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:06:37 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2009-02-12 19:06:37 (GMT)
commit02fd491bf01ff4c54980a4f1ad3fd822e6998215 (patch)
treec27bbaee35bb4072ede8915bf43b1037a924ae55 /src/H5Aint.c
parent3c483bd0782a3f9809d782a29a01bd1013f651f4 (diff)
downloadhdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.zip
hdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.tar.gz
hdf5-02fd491bf01ff4c54980a4f1ad3fd822e6998215.tar.bz2
[svn-r16477] Purpose: Fix problem with opening an attribute multiple times through multiple
file handles. Description: An attribute's "oloc" field which specifies the file it resides in was located in the attribute's "shared" structure. So when an attribute was opened multiple times all of the handles for that attribute pointed to the same file id, even if different file id's were used to open the different handles for the attribute. The "oloc" has been moved to the top level H5A_t struct. Tested: jam, smirom (h5committest)
Diffstat (limited to 'src/H5Aint.c')
-rw-r--r--src/H5Aint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Aint.c b/src/H5Aint.c
index a2cc6ec..fac0110 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -829,7 +829,7 @@ H5A_attr_copy_file(const H5A_t *attr_src, H5F_t *file_dst, hbool_t *recompute_si
HGOTO_ERROR(H5E_FILE, H5E_NOSPACE, NULL, "can't allocate shared attr structure")
/* Don't have an opened group location for copy */
- H5O_loc_reset(&(attr_dst->shared->oloc));
+ H5O_loc_reset(&(attr_dst->oloc));
H5G_name_reset(&(attr_dst->path));
attr_dst->obj_opened = FALSE;