summaryrefslogtreecommitdiffstats
path: root/src/H5A.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-05-13 18:54:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-05-13 18:54:25 (GMT)
commit460a897e0e975dc424e924970c171d066773e319 (patch)
treef65ce770d7662ea10e216e208449efc3b79b913d /src/H5A.c
parent51d29f215c006345297b98ad7cb28a68e4b2d6df (diff)
downloadhdf5-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 7adae38..4db7265 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -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);