summaryrefslogtreecommitdiffstats
path: root/tools/h5ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5ls.c')
-rw-r--r--tools/h5ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5ls.c b/tools/h5ls.c
index f792a19..56c9821 100644
--- a/tools/h5ls.c
+++ b/tools/h5ls.c
@@ -1328,7 +1328,7 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data)
buf = malloc(need);
assert(buf);
if (H5Aread(attr, p_type, buf)>=0) {
- h5dump_mem(stdout, &info, p_type, space, buf,-1);
+ h5dump_mem(stdout, &info, attr, p_type, space, buf,-1);
}
free(buf);
H5Tclose(p_type);