diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-05-13 18:54:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-05-13 18:54:25 (GMT) |
commit | 460a897e0e975dc424e924970c171d066773e319 (patch) | |
tree | f65ce770d7662ea10e216e208449efc3b79b913d /src/H5A.c | |
parent | 51d29f215c006345297b98ad7cb28a68e4b2d6df (diff) | |
download | hdf5-460a897e0e975dc424e924970c171d066773e319.zip hdf5-460a897e0e975dc424e924970c171d066773e319.tar.gz hdf5-460a897e0e975dc424e924970c171d066773e319.tar.bz2 |
[svn-r6861] Purpose:
Bug fix
Description:
Iterating over the attributes of an object without any attributes was
returning FAIL instead of 0 as the RM states.
Solution:
Changed return value of H5Aiterate for objects without attributes to be 0
and added regression tests for this.
Platforms tested:
FreeBSD 4.8 (sleipnir)
h5committest not needed.
Diffstat (limited to 'src/H5A.c')
-rw-r--r-- | src/H5A.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1291,7 +1291,7 @@ H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data) { H5G_entry_t *ent = NULL; /*symtab ent of object to attribute */ H5A_t found_attr; - herr_t ret_value = FAIL; + herr_t ret_value = 0; int idx; FUNC_ENTER_API(H5Aiterate, FAIL); |