mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-0 Fix for decompiler error caused by empty union field names
This commit is contained in:
parent
7d3d6ea46e
commit
02b3674963
1 changed files with 2 additions and 2 deletions
|
@ -439,7 +439,7 @@ public class PcodeDataTypeManager {
|
|||
}
|
||||
resBuf.append("<field");
|
||||
String field_name = comp.getFieldName();
|
||||
if (field_name == null) {
|
||||
if (field_name == null || field_name.length() == 0) {
|
||||
field_name = comp.getDefaultFieldName();
|
||||
}
|
||||
SpecXmlUtils.xmlEscapeAttribute(resBuf, "name", field_name);
|
||||
|
@ -470,7 +470,7 @@ public class PcodeDataTypeManager {
|
|||
}
|
||||
resBuf.append("<field");
|
||||
String field_name = comp.getFieldName();
|
||||
if (field_name == null) {
|
||||
if (field_name == null || field_name.length() == 0) {
|
||||
field_name = comp.getDefaultFieldName();
|
||||
}
|
||||
SpecXmlUtils.xmlEscapeAttribute(resBuf, "name", field_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue