summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-02-19 19:36:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-02-19 19:36:52 (GMT)
commit0a9ad6a46eadfb6c270bfdba114374c6cb95b063 (patch)
tree803b0ea0e4af156b20b0533d841b5d09d0c901de /src/H5O.c
parent0e515209b26676bcc93e1ca412ecc026ad8d6312 (diff)
downloadhdf5-0a9ad6a46eadfb6c270bfdba114374c6cb95b063.zip
hdf5-0a9ad6a46eadfb6c270bfdba114374c6cb95b063.tar.gz
hdf5-0a9ad6a46eadfb6c270bfdba114374c6cb95b063.tar.bz2
[svn-r16494] Description:
Bring r16483 back from trunk: Clean up (i.e. remove) more internal calls to H5E_clear_stack(), along with some other minor code cleanups. Tested on: Mac OS X/32 10.5.6 (amazon) (too minor to require h5committest)
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 8c8ace0..9b9d0ef 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -2416,7 +2416,8 @@ H5O_get_info(H5O_loc_t *oloc, hid_t dxpl_id, hbool_t want_ih_info, H5O_info_t *o
} /* end for */
/* Retrieve # of attributes */
- oinfo->num_attrs = H5O_attr_count_real(oloc->file, dxpl_id, oh);
+ if(H5O_attr_count_real(oloc->file, dxpl_id, oh, &oinfo->num_attrs) < 0)
+ HGOTO_ERROR(H5E_ATTR, H5E_CANTGET, FAIL, "can't retrieve attribute count")
/* Get B-tree & heap metadata storage size, if requested */
if(want_ih_info) {