summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2009-04-22 18:39:10 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2009-04-22 18:39:10 (GMT)
commitbe8cb6411aef28ebdf3c7f757a881ea984f4411d (patch)
treeb3f378e0fda9ce84b6179acfe23e28338303cd43 /src
parent37906de73c0d52a3ae18d4683fa7517cda57c04c (diff)
downloadhdf5-be8cb6411aef28ebdf3c7f757a881ea984f4411d.zip
hdf5-be8cb6411aef28ebdf3c7f757a881ea984f4411d.tar.gz
hdf5-be8cb6411aef28ebdf3c7f757a881ea984f4411d.tar.bz2
[svn-r16835] Allow an error class to use other class's major or minor errors. Added a test for it, too.
Tested on jam - simple change.
Diffstat (limited to 'src')
-rw-r--r--src/H5Eint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5Eint.c b/src/H5Eint.c
index ba1b1e0..52f8aac 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)) {