summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2019-04-23 19:12:58 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2019-04-23 19:12:58 (GMT)
commit4a4c0bc3972cde177c0a6e2a191b1fa187846c08 (patch)
tree325fa8e0e8beea864695d7d2b7cd33b6f0abf203 /src/H5I.c
parent544a36e75e5766cc1e40bc7408cd795e7ce38bde (diff)
downloadhdf5-4a4c0bc3972cde177c0a6e2a191b1fa187846c08.zip
hdf5-4a4c0bc3972cde177c0a6e2a191b1fa187846c08.tar.gz
hdf5-4a4c0bc3972cde177c0a6e2a191b1fa187846c08.tar.bz2
Fix issue with H5Iiterate always stopping with an error after the first iteration
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5I.c b/src/H5I.c
index 2edea9b..93c9e98 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -1943,6 +1943,8 @@ H5I__iterate_pub_cb(void H5_ATTR_UNUSED *obj, hid_t id, void *_udata)
ret_value = H5_ITER_STOP; /* terminate iteration early */
else if(cb_ret_val < 0)
ret_value = H5_ITER_ERROR; /* indicate failure (which terminates iteration) */
+ else
+ ret_value = H5_ITER_CONT; /* continue iteration */
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5I__iterate_pub_cb() */