diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-02 15:13:38 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2000-12-02 15:13:38 (GMT) |
commit | afb64c0bac1527046047f704000cf68ff023740f (patch) | |
tree | 148ed4d9fe1b2e198234af8787119cc532a1b54c /tools/h5dump.c | |
parent | 74d5c6b757d6d10673f8da11b383074482868410 (diff) | |
download | hdf5-afb64c0bac1527046047f704000cf68ff023740f.zip hdf5-afb64c0bac1527046047f704000cf68ff023740f.tar.gz hdf5-afb64c0bac1527046047f704000cf68ff023740f.tar.bz2 |
[svn-r3066] Purpose:
Bug Fix.
Description:
Attributes whose datatype was an object or dataset region reference weren't
dumping correctly.
Solution:
Pass along attribute ID to the code which prints the attributes, so the
reference types can be dereferenced and printed.
Platforms tested:
FreeBSD 4.2 (hawkwind) & IRIX64 6.5 (modi4)
Diffstat (limited to 'tools/h5dump.c')
-rw-r--r-- | tools/h5dump.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/h5dump.c b/tools/h5dump.c index c22944d..c45f8a9 100644 --- a/tools/h5dump.c +++ b/tools/h5dump.c @@ -1281,7 +1281,6 @@ dump_data(hid_t obj_id, int obj_data) /* need to call h5dump_mem for the attribute data */ type = H5Aget_type(obj_id); p_type = h5dump_fixtype(type); - H5Tclose(type); space = H5Aget_space(obj_id); ndims = H5Sget_simple_extent_dims(space, size, NULL); @@ -1292,7 +1291,7 @@ dump_data(hid_t obj_id, int obj_data) assert(buf); if (H5Aread(obj_id, p_type, buf) >= 0) - d_status = h5dump_mem(stdout, outputformat, p_type, space, buf, depth); + d_status = h5dump_mem(stdout, outputformat, obj_id, p_type, space, buf, depth); free(buf); H5Tclose(p_type); |