summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-02-12 22:41:52 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-02-12 22:41:52 (GMT)
commitca0a3e2853a97329430c7c7ceaa719e4b857d145 (patch)
tree5e414f586ed820f869919cb9d0e9f7d6ebb1c262 /src/H5O.c
parent0bdedf0a39e859956b6810e848fa67d16b4e10a4 (diff)
downloadhdf5-ca0a3e2853a97329430c7c7ceaa719e4b857d145.zip
hdf5-ca0a3e2853a97329430c7c7ceaa719e4b857d145.tar.gz
hdf5-ca0a3e2853a97329430c7c7ceaa719e4b857d145.tar.bz2
[svn-r16483] Description:
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) {