summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-02-13 19:33:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-02-13 19:33:33 (GMT)
commit4b23b1752802ba34db8f48d25b2d1dff0eca41a7 (patch)
tree126282c872fd344bf214eb1ab4eea8f011678113 /src
parent56e63bdeea4bd94b46dd3e962e457959e4fe636c (diff)
downloadhdf5-4b23b1752802ba34db8f48d25b2d1dff0eca41a7.zip
hdf5-4b23b1752802ba34db8f48d25b2d1dff0eca41a7.tar.gz
hdf5-4b23b1752802ba34db8f48d25b2d1dff0eca41a7.tar.bz2
[svn-r13288] Description:
Fix core dump for iterating over attributes and not passing in a "starting point". Update output files missed in previous checkin. This change essentially reverses a previous change of attribute ordering, leaving the output of h5dump & h5ls compatible with 1.6.x Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src')
-rw-r--r--src/H5A.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 35773df..0c42dc6 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -1577,7 +1577,8 @@ H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data)
HERROR(H5E_ATTR, H5E_BADITER, "error iterating over attributes");
/* Set the last attribute information */
- *attr_num = (unsigned)last_attr;
+ if(attr_num)
+ *attr_num = (unsigned)last_attr;
done:
FUNC_LEAVE_API(ret_value)