summaryrefslogtreecommitdiffstats
path: root/src/H5Aint.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-10-29 21:52:00 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-10-29 21:52:00 (GMT)
commitaaaf1acc08846684af8750db68cdf6d02bbc540f (patch)
treec6f23cc6707864f15b48282770251c7cc1ce7959 /src/H5Aint.c
parentca5ff0c0c2ad95916ed41640419d4c24e78cc83d (diff)
downloadhdf5-aaaf1acc08846684af8750db68cdf6d02bbc540f.zip
hdf5-aaaf1acc08846684af8750db68cdf6d02bbc540f.tar.gz
hdf5-aaaf1acc08846684af8750db68cdf6d02bbc540f.tar.bz2
Add ref counter to VOL object wrapping in API contexts, so that re-entrant /
recursive routines work correctly. Another minor cleanup in the attribute code.
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 97da9a4..8d90cf9 100644
--- a/src/H5Aint.c
+++ b/src/H5Aint.c
@@ -2628,7 +2628,7 @@ H5A__iterate(const H5G_loc_t *loc, const char *obj_name, H5_index_t idx_type, H5
H5G_name_t obj_path; /* Opened object group hier. path */
H5O_loc_t obj_oloc; /* Opened object object location */
hbool_t loc_found = FALSE; /* Entry at 'obj_name' found */
- hid_t obj_loc_id = (-1); /* ID for object located */
+ hid_t obj_loc_id = H5I_INVALID_HID; /* ID for object located */
H5A_attr_iter_op_t attr_op; /* Attribute operator */
void *temp_obj = NULL;
H5I_type_t obj_type;