From 0619c3dfd8e00613a39ccbbe47ff3abeed0534e6 Mon Sep 17 00:00:00 2001 From: David Young Date: Mon, 17 Aug 2020 10:36:12 -0500 Subject: Fix copy-and-paste error: do not copy the H5T_C_S1 type twice. --- test/vfd_swmr_vlstr_reader.c | 6 ------ test/vfd_swmr_vlstr_writer.c | 4 ---- 2 files changed, 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"); -- cgit v0.12