summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-11-18 21:18:13 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-11-18 21:18:13 (GMT)
commit5125354f7e9f732113d2e7692238d0607c608eb6 (patch)
tree578c3fc986491bf3f41e130784ed458ae00958b4 /src
parent0f870b0f479c8f561def96e689fc8835b70de156 (diff)
downloadhdf5-5125354f7e9f732113d2e7692238d0607c608eb6.zip
hdf5-5125354f7e9f732113d2e7692238d0607c608eb6.tar.gz
hdf5-5125354f7e9f732113d2e7692238d0607c608eb6.tar.bz2
[svn-r11742] Purpose: Minor correction.
Description: H5Eset_auto_stack() and H5Eset_auto() used FUNC_ENTER_API. It would clear the error stack from the previous API call. It's better to use FUNC_ENTER_API_NOCLEAR to avoid clearing the stack. Platforms tested: fuss - simple change.
Diffstat (limited to 'src')
-rw-r--r--src/H5E.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 5738e25..105cd8d 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -2419,7 +2419,8 @@ H5Eset_auto(H5E_auto_t func, void *client_data)
H5E_t *estack; /* Error stack to operate on */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_API(H5Eset_auto, FAIL)
+ /* Don't clear the error stack! :-) */
+ FUNC_ENTER_API_NOCLEAR(H5Eset_auto, FAIL)
H5TRACE2("e","xx",func,client_data);
if((estack = H5E_get_my_stack())==NULL) /*lint !e506 !e774 Make lint 'constant value Boolean' in non-threaded case */
@@ -2466,7 +2467,8 @@ H5Eset_auto_stack(hid_t estack_id, H5E_auto_stack_t func, void *client_data)
H5E_t *estack; /* Error stack to operate on */
herr_t ret_value=SUCCEED; /* Return value */
- FUNC_ENTER_API(H5Eset_auto_stack, FAIL)
+ /* Don't clear the error stack! :-) */
+ FUNC_ENTER_API_NOCLEAR(H5Eset_auto_stack, FAIL)
H5TRACE3("e","ixx",estack_id,func,client_data);
if(estack_id == H5E_DEFAULT) {