diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-13 19:33:33 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-02-13 19:33:33 (GMT) |
commit | 4b23b1752802ba34db8f48d25b2d1dff0eca41a7 (patch) | |
tree | 126282c872fd344bf214eb1ab4eea8f011678113 /src/H5A.c | |
parent | 56e63bdeea4bd94b46dd3e962e457959e4fe636c (diff) | |
download | hdf5-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/H5A.c')
-rw-r--r-- | src/H5A.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |