diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-09 00:31:54 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-09 00:31:54 (GMT) |
commit | 561974d329700ca32ec47170fb8316f1ae1ec00e (patch) | |
tree | 001d62100a1778904c01f71a021df75bc07685af /test | |
parent | a69c33af13578b0935419adb5a1ec89563123e52 (diff) | |
download | hdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.zip hdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.tar.gz hdf5-561974d329700ca32ec47170fb8316f1ae1ec00e.tar.bz2 |
Add missing return-value check.
Diffstat (limited to 'test')
-rw-r--r-- | test/vfd_swmr_bigset_writer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c index c150a27..4139be7 100644 --- a/test/vfd_swmr_bigset_writer.c +++ b/test/vfd_swmr_bigset_writer.c @@ -414,6 +414,9 @@ verify_extensible_dset(state_t *s, unsigned int which, uint32_t mat[ROWS][COLS], filespace = H5Dget_space(ds); + if (filespace == badhid) + errx(EXIT_FAILURE, "H5Dget_space failed"); + if (H5Sget_simple_extent_dims(filespace, size, NULL) < 0) errx(EXIT_FAILURE, "H5Sget_simple_extent_dims failed"); |