Merge pull request #1670 in HDFFV/hdf5 from ~JHENDERSON/hdf5:develop to develop

* commit '4a4c0bc3972cde177c0a6e2a191b1fa187846c08':
  Fix issue with H5Iiterate always stopping with an error after the first iteration
This commit is contained in:
Jordan Henderson 2019-04-23 20:10:37 -05:00
commit 1adec082f2

View File

@ -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() */