diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-21 22:38:46 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-08-21 22:38:46 (GMT) |
commit | e9f3b20b64d3c2ffe2e134a5c4bf974c916472b8 (patch) | |
tree | e9d20f2bafb9c9db148ab0f2b8b3a5741209ef64 /src/H5E.c | |
parent | c6e35f6abd381583d3686525b1cd4fdca9eaeded (diff) | |
download | hdf5-e9f3b20b64d3c2ffe2e134a5c4bf974c916472b8.zip hdf5-e9f3b20b64d3c2ffe2e134a5c4bf974c916472b8.tar.gz hdf5-e9f3b20b64d3c2ffe2e134a5c4bf974c916472b8.tar.bz2 |
[svn-r15515] Fix faulty error checking in call to H5I_remove().
Add prototype to the top of app_ref.c to suppress warning.
Tested: kagiso
Diffstat (limited to 'src/H5E.c')
-rw-r--r-- | src/H5E.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -616,7 +616,7 @@ H5E_close_msg_cb(void *obj_ptr, hid_t obj_id, void *key) /* Close the message if it is in the class being closed */ if(err_msg->cls == cls) - if(H5I_remove(obj_id) < 0) + if(NULL == H5I_remove(obj_id)) HGOTO_ERROR(H5E_ERROR, H5E_CANTREMOVE, FAIL, "unable to remove error message") done: |