diff options
-rw-r--r-- | tools/h5dump/h5dump.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index a6c1f77..3ea201b 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -4519,7 +4519,8 @@ print_enum(hid_t type) unsigned i; snmembs = H5Tget_nmembers(type); - HDassert(snmembs >= 0); + if(snmembs < 0) + return; nmembs = (unsigned)snmembs; super = H5Tget_super(type); @@ -6701,7 +6702,8 @@ xml_print_enum(hid_t type) size_t j; snmembs = H5Tget_nmembers(type); - HDassert(snmembs >= 0); + if(snmembs < 0) + return; nmembs = (unsigned)snmembs; super = H5Tget_super(type); |