summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-08-17 15:36:12 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-08-17 15:36:12 (GMT)
commit0619c3dfd8e00613a39ccbbe47ff3abeed0534e6 (patch)
treecba0349a08b2d5933bc5ce514c24c73524c5e8dc
parent695bd92140e2dab142575b531a2c93693b425f47 (diff)
downloadhdf5-0619c3dfd8e00613a39ccbbe47ff3abeed0534e6.zip
hdf5-0619c3dfd8e00613a39ccbbe47ff3abeed0534e6.tar.gz
hdf5-0619c3dfd8e00613a39ccbbe47ff3abeed0534e6.tar.bz2
Fix copy-and-paste error: do not copy the H5T_C_S1 type twice.
-rw-r--r--test/vfd_swmr_vlstr_reader.c6
-rw-r--r--test/vfd_swmr_vlstr_writer.c4
2 files changed, 0 insertions, 10 deletions
diff --git a/test/vfd_swmr_vlstr_reader.c b/test/vfd_swmr_vlstr_reader.c
index df9037729..48a1f41 100644
--- a/test/vfd_swmr_vlstr_reader.c
+++ b/test/vfd_swmr_vlstr_reader.c
@@ -142,12 +142,6 @@ main(int argc, char **argv)
fid = H5Fopen("vfd_swmr_vlstr.h5", H5F_ACC_RDONLY, fapl);
- /* Create the VL string datatype and a scalar dataspace, or a
- * fixed-length string datatype and a simple dataspace.
- */
- if ((type = H5Tcopy(H5T_C_S1)) == badhid)
- errx(EXIT_FAILURE, "H5Tcopy");
-
/* Create the VL string datatype and a scalar dataspace */
if ((type = H5Tcopy(H5T_C_S1)) == badhid)
errx(EXIT_FAILURE, "H5Tcopy");
diff --git a/test/vfd_swmr_vlstr_writer.c b/test/vfd_swmr_vlstr_writer.c
index 193e03c..d4a83ae 100644
--- a/test/vfd_swmr_vlstr_writer.c
+++ b/test/vfd_swmr_vlstr_writer.c
@@ -218,10 +218,6 @@ main(int argc, char **argv)
if ((type = H5Tcopy(H5T_C_S1)) == badhid)
errx(EXIT_FAILURE, "H5Tcopy");
- /* Create the VL string datatype and a scalar dataspace */
- if ((type = H5Tcopy(H5T_C_S1)) == badhid)
- errx(EXIT_FAILURE, "H5Tcopy");
-
if (!variable) {
if (H5Tset_size(type, 32) < 0)
errx(EXIT_FAILURE, "H5Tset_size");