diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2023-08-02 20:14:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 20:14:59 (GMT) |
commit | f2ba867b58f22809af3dfb2d087c700587835359 (patch) | |
tree | 25e8fa8f30791731170b88517965f8e8cff9fd6d /tools/lib/h5tools_str.c | |
parent | d8dd57aba1cb78771ff1c86330b08453e0cc2838 (diff) | |
download | hdf5-f2ba867b58f22809af3dfb2d087c700587835359.zip hdf5-f2ba867b58f22809af3dfb2d087c700587835359.tar.gz hdf5-f2ba867b58f22809af3dfb2d087c700587835359.tar.bz2 |
Fix H5Otoken_to_str call in h5dump and other minor cleanup (#3314) (#3329)
Diffstat (limited to 'tools/lib/h5tools_str.c')
-rw-r--r-- | tools/lib/h5tools_str.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/h5tools_str.c b/tools/lib/h5tools_str.c index ff7fab5..bd75879 100644 --- a/tools/lib/h5tools_str.c +++ b/tools/lib/h5tools_str.c @@ -1228,11 +1228,12 @@ h5tools_str_sprint(h5tools_str_t *str, const h5tool_format_t *info, hid_t contai h5tools_str_append(str, "%u-", (unsigned)oi.type); break; } - H5Oclose(obj); /* Print OID */ H5Otoken_to_str(obj, &oi.token, &obj_tok_str); + H5Oclose(obj); + if (info->obj_hidefileno) h5tools_str_append(str, info->obj_format, obj_tok_str); else |