diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-11-03 20:54:19 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-11-03 20:54:19 (GMT) |
commit | 780999deee27ee44f5311be57c4153c5a231f183 (patch) | |
tree | aa93fafca08efda3d9d2c2aaa468aa4057913972 /src | |
parent | d2980de247abb12e0e75a0ce71dd2a95048d1a19 (diff) | |
download | hdf5-780999deee27ee44f5311be57c4153c5a231f183.zip hdf5-780999deee27ee44f5311be57c4153c5a231f183.tar.gz hdf5-780999deee27ee44f5311be57c4153c5a231f183.tar.bz2 |
[svn-r16021] Purpose: Fix behaviour of H5Ovisit
Description: H5Ovisit and H5Ovisit by name will now check for a positive return
value from the first callback. Test added for this case.
Tested: kagiso
Diffstat (limited to 'src')
-rw-r--r-- | src/H5O.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2810,6 +2810,10 @@ H5O_visit(hid_t loc_id, const char *obj_name, H5_index_t idx_type, if((ret_value = op(obj_id, ".", &oinfo, op_data)) < 0) HGOTO_ERROR(H5E_OHDR, H5E_BADITER, FAIL, "can't visit objects") + /* Check return value of first callback */ + if(ret_value != H5_ITER_CONT) + HGOTO_DONE(ret_value); + /* Check for object being a group */ if(oinfo.type == H5O_TYPE_GROUP) { H5G_loc_t start_loc; /* Location of starting group */ |