mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
[svn-r11228] Purpose:
Code cleanup Description: Add a check for the correct type of ID for H5Eclose_stack() Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
This commit is contained in:
parent
108a61528a
commit
a8fbde5d18
@ -1185,6 +1185,10 @@ H5Eclose_stack(hid_t stack_id)
|
||||
H5TRACE1("e","i",stack_id);
|
||||
|
||||
if(H5E_DEFAULT != stack_id) {
|
||||
/* Check arguments */
|
||||
if (H5I_ERROR_STACK != H5I_get_type(stack_id))
|
||||
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a error stack ID")
|
||||
|
||||
/*
|
||||
* Decrement the counter on the error stack. It will be freed if the count
|
||||
* reaches zero.
|
||||
|
Loading…
Reference in New Issue
Block a user