[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:
Pedro Vicente Nunes 2003-05-19 15:11:45 -05:00
parent 13bc7e92af
commit c26a0bc516

View File

@ -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 {