Commit 7b05c32a authored by gsell's avatar gsell

src/h5core/private/h5_attrib.h

- get_attrib_info(): wrong length was return for string attributes
parent 825ee8ac
......@@ -153,9 +153,9 @@ get_attrib_info (
) {
H5_INLINE_FUNC_ENTER (h5_err_t);
hid_t datatype_id;
TRY (datatype_id = h5priv_get_normalized_attribute_type (attrib_id));
TRY (datatype_id = hdf5_get_attribute_type (attrib_id));
if (attrib_nelem) {
if (datatype_id == H5_STRING) {
if (h5priv_normalize_type (datatype_id) == H5_STRING) {
*attrib_nelem = H5Tget_size (datatype_id);
} else {
hid_t space_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment