Fix crash when pahole called with -R -S

This commit is contained in:
Tal Kelrich 2012-02-26 16:33:05 +02:00
parent 76f687bf49
commit 4e5967a2ca
1 changed files with 1 additions and 1 deletions

View File

@ -1191,7 +1191,7 @@ size_t class__fprintf(struct class *self, const struct cu *cu,
const uint16_t t = tself->namespace.tag.tag;
size_t printed = fprintf(fp, "%s%s%s%s%s",
cconf.prefix ?: "", cconf.prefix ? " " : "",
((conf->classes_as_structs ||
((cconf.classes_as_structs ||
t == DW_TAG_structure_type) ? "struct" :
t == DW_TAG_class_type ? "class" :
"interface"),