diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-10 20:18:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-08-10 20:18:49 (GMT) |
commit | a8fbde5d18ea0b8e0567649571e527e9f04ab5c7 (patch) | |
tree | ab8a7815650bbe8a4c0664b736a3c733596ea5fc /src/H5E.c | |
parent | 108a61528aaa7a1f0da743697d1889d7c3afe738 (diff) | |
download | hdf5-a8fbde5d18ea0b8e0567649571e527e9f04ab5c7.zip hdf5-a8fbde5d18ea0b8e0567649571e527e9f04ab5c7.tar.gz hdf5-a8fbde5d18ea0b8e0567649571e527e9f04ab5c7.tar.bz2 |
[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
Diffstat (limited to 'src/H5E.c')
-rw-r--r-- | src/H5E.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |