diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2010-01-08 20:07:54 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2010-01-08 20:07:54 (GMT) |
commit | c3b6d069917365da14924b908fea07346d023005 (patch) | |
tree | 027e5d13f15d75a0f54307309b6cbcf4a08cd798 | |
parent | 0f15b4c999d25ee3460744e6e121c63bb72d8b94 (diff) | |
download | hdf5-c3b6d069917365da14924b908fea07346d023005.zip hdf5-c3b6d069917365da14924b908fea07346d023005.tar.gz hdf5-c3b6d069917365da14924b908fea07346d023005.tar.bz2 |
[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
-rw-r--r-- | tools/h5dump/h5dump.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); /*------------------------------------------------------------------------- |