Ticket 706: HLHDF fails to read variable strings after upgrade to hdf5 1.10.1 v0.8.7
authorAnders Henja <anders@henjab.se>
Tue, 28 Nov 2017 21:05:58 +0000 (22:05 +0100)
committerAnders Henja <anders@henjab.se>
Tue, 28 Nov 2017 21:05:58 +0000 (22:05 +0100)
hlhdf/hlhdf.c

index 19189b0..1ce12c2 100644 (file)
@@ -537,7 +537,8 @@ hid_t getFixedType(hid_t type)
     HL_SPEWDEBUG0("This is of type H5T_STRING");
     mtype = H5Tcopy(H5T_C_S1);
     if (H5Tis_variable_str(type)) {
-      H5Tset_size(mtype, H5T_VARIABLE);
+      HL_H5T_CLOSE(mtype);
+      mtype = H5Tcopy(type);
     } else {
       H5Tset_size(mtype, size);
     }