summaryrefslogtreecommitdiffstats
path: root/src/H5Eint.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-05-05 18:57:43 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-05-05 18:57:43 (GMT)
commita1b11b8d4758f5604ac2bdf144db9cab5a6092d7 (patch)
tree2351b9681682f90f26787aab832af78f86675d8c /src/H5Eint.c
parent548eec307006ebd01294fad2886421f07c3c92c8 (diff)
downloadhdf5-a1b11b8d4758f5604ac2bdf144db9cab5a6092d7.zip
hdf5-a1b11b8d4758f5604ac2bdf144db9cab5a6092d7.tar.gz
hdf5-a1b11b8d4758f5604ac2bdf144db9cab5a6092d7.tar.bz2
[svn-r16922] Allow an error class to use other class's major or minor errors. Added a test for it, too.
Tested on jam - simple change. I've tested it for the trunk.
Diffstat (limited to 'src/H5Eint.c')
-rw-r--r--src/H5Eint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Eint.c b/src/H5Eint.c
index 99048e1..cba9155 100644
--- a/src/H5Eint.c
+++ b/src/H5Eint.c
@@ -362,8 +362,9 @@ H5E_walk2_cb(unsigned n, const H5E_error2_t *err_desc, void *client_data)
if(min_ptr->msg)
min_str = min_ptr->msg;
- /* Get error class info */
- cls_ptr = maj_ptr->cls;
+ /* Get error class info. Don't use the class of the major or minor error because
+ * they might be different. */
+ cls_ptr = (H5E_cls_t *)H5I_object_verify(err_desc->cls_id, H5I_ERROR_CLASS);
/* Print error class header if new class */
if(eprint->cls.lib_name == NULL || HDstrcmp(cls_ptr->lib_name, eprint->cls.lib_name)) {