summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2008-08-21 22:39:35 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2008-08-21 22:39:35 (GMT)
commitb134708f2e1a833c01df536273e32da130557610 (patch)
treec144580c3e38d5286d3dcbcc9b9d9d6fb7ccc026 /src
parent7a2756e7ae8164ac6601957f3a9617a00456f918 (diff)
downloadhdf5-b134708f2e1a833c01df536273e32da130557610.zip
hdf5-b134708f2e1a833c01df536273e32da130557610.tar.gz
hdf5-b134708f2e1a833c01df536273e32da130557610.tar.bz2
[svn-r15516] 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')
-rw-r--r--src/H5E.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 9365035..7112d6e 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -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: