diff options
author | David Young <dyoung@hdfgroup.org> | 2020-03-16 22:20:43 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-03-16 22:20:43 (GMT) |
commit | 705f52d2228875defeadf4b3f04f1e313ad655e4 (patch) | |
tree | ba8ec4a91a418a24dba42c8201cabd63f6152160 /test/vfd_swmr_vlstr_reader.c | |
parent | 3d51febb376ef95fdaa34c9334003f4e85ff2a21 (diff) | |
download | hdf5-705f52d2228875defeadf4b3f04f1e313ad655e4.zip hdf5-705f52d2228875defeadf4b3f04f1e313ad655e4.tar.gz hdf5-705f52d2228875defeadf4b3f04f1e313ad655e4.tar.bz2 |
Test H5Dread() for the right "success" conditions. I'm not sure how
this even appeared to work, before.
Diffstat (limited to 'test/vfd_swmr_vlstr_reader.c')
-rw-r--r-- | test/vfd_swmr_vlstr_reader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/vfd_swmr_vlstr_reader.c b/test/vfd_swmr_vlstr_reader.c index e797731..dfe06c5 100644 --- a/test/vfd_swmr_vlstr_reader.c +++ b/test/vfd_swmr_vlstr_reader.c @@ -48,7 +48,7 @@ read_vl_dset(hid_t dset, hid_t type, char **data) estack_state_t es; es = disable_estack(); - success = H5Dread(dset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) < 0; + success = H5Dread(dset, type, H5S_ALL, H5S_ALL, H5P_DEFAULT, data) >= 0; if (*data == NULL) { read_null = true; return false; |