summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-19 20:11:45 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-19 20:11:45 (GMT)
commitc26a0bc516d9e8e72e8301df074e025a2b4a10aa (patch)
tree6c7043551395b7e8c5cb6afff73a0249f21e289f /tools
parent13bc7e92aff680c3b66f483341efb8099cde685c (diff)
downloadhdf5-c26a0bc516d9e8e72e8301df074e025a2b4a10aa.zip
hdf5-c26a0bc516d9e8e72e8301df074e025a2b4a10aa.tar.gz
hdf5-c26a0bc516d9e8e72e8301df074e025a2b4a10aa.tar.bz2
[svn-r6903] Purpose:
bug fix Description: when the list attribute function was called with values of type reference, the format string was not initialized causing a segmentation fault on printf Solution: initialized the string ( with obj no and file no turned on ) Platforms tested: Windows 2000 (octopus) Linux 2.4 (rockaway) SunOS 5.7 (arabica) IRIX 6.5 (modi4) Misc. update:
Diffstat (limited to 'tools')
-rw-r--r--tools/h5ls/h5ls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index 571d80a..f5798df 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -1342,6 +1342,9 @@ list_attr (hid_t obj, const char *attr_name, void UNUSED *op_data)
info.line_pre = " %s \"";
info.line_suf = "\"";
}
+ /* values of type reference */
+ info.obj_format = "-%lu:%lu:%lu:%lu";
+ info.obj_hidefileno = 0;
if (hexdump_g) {
p_type = H5Tcopy(type);
} else {