mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +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()
|
num_elements = valobj.GetNumChildren()
|
||||||
res = "\""
|
res = "\""
|
||||||
for i in range(0, num_elements):
|
for i in range(0, num_elements):
|
||||||
res += valobj.GetChildAtIndex(i).GetValue().strip("'")
|
c = valobj.GetChildAtIndex(i).GetValue()
|
||||||
|
if c:
|
||||||
|
res += c.strip("'")
|
||||||
res += "\""
|
res += "\""
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user