mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix a null dereference in the LLDB data formatters.
This commit is contained in:
parent
02cfbd1931
commit
1760eceffa
@ -118,7 +118,9 @@ def SmallStringSummaryProvider(valobj, internal_dict):
|
||||
num_elements = valobj.GetNumChildren()
|
||||
res = "\""
|
||||
for i in range(0, num_elements):
|
||||
res += valobj.GetChildAtIndex(i).GetValue().strip("'")
|
||||
c = valobj.GetChildAtIndex(i).GetValue()
|
||||
if c:
|
||||
res += c.strip("'")
|
||||
res += "\""
|
||||
return res
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user