From c3b6d069917365da14924b908fea07346d023005 Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Fri, 8 Jan 2010 15:07:54 -0500 Subject: [svn-r18092] Fix coverity item 70. Changed the improper assertion of the return value of a library function to a check, and a return(void) on failure. Tested: Fedora --- tools/h5dump/h5dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index 3ea201b..ad8b1af 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -2714,7 +2714,8 @@ dump_dcpl(hid_t dcpl_id,hid_t type_id, hid_t obj_id) nfilters = H5Pget_nfilters(dcpl_id); ioffset = H5Dget_offset(obj_id); next = H5Pget_external_count(dcpl_id); - HDassert(next >= 0); + if(next < 0) + return; HDstrcpy(f_name,"\0"); /*------------------------------------------------------------------------- -- cgit v0.12