summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_vlstr_reader.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-03-16 22:20:43 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-03-16 22:20:43 (GMT)
commit705f52d2228875defeadf4b3f04f1e313ad655e4 (patch)
treeba8ec4a91a418a24dba42c8201cabd63f6152160 /test/vfd_swmr_vlstr_reader.c
parent3d51febb376ef95fdaa34c9334003f4e85ff2a21 (diff)
downloadhdf5-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.c2
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;