mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
This commit is contained in:
parent
13bc7e92af
commit
c26a0bc516
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user