mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
ensure oi_name is never a nullptr (#165)
This commit is contained in:
parent
ad28fb64b2
commit
cac9b99974
@ -122,8 +122,10 @@ std::string typeToName(drgn_type* type) {
|
||||
const char* typeTag = drgn_type_tag(type);
|
||||
if (typeTag != nullptr) {
|
||||
typeName = typeTag;
|
||||
} else {
|
||||
} else if (type->_private.oi_name != nullptr) {
|
||||
typeName = type->_private.oi_name;
|
||||
} else {
|
||||
typeName = "";
|
||||
}
|
||||
// TODO: Lookup unnamed union in type->string flag
|
||||
} else if (drgn_type_has_name(type)) {
|
||||
|
Loading…
Reference in New Issue
Block a user