diff options
author | Enrico Granata <egranata@apple.com> | 2013-05-02 17:29:04 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-05-02 17:29:04 +0000 |
commit | e55f77aec8937d73c2268d5a01c1eb8adb49757c (patch) | |
tree | 9171888d38af4009feb4070e0ae960fb3c65e503 /lldb/source/API/SBCommandReturnObject.cpp | |
parent | 9ee5840de4e739bd1f03b54254aac92a4c8ea26a (diff) | |
download | bcm5719-llvm-e55f77aec8937d73c2268d5a01c1eb8adb49757c.tar.gz bcm5719-llvm-e55f77aec8937d73c2268d5a01c1eb8adb49757c.zip |
<rdar://problem/13499317>
Enabling Python commands to produce Unicode output via:
result.PutCString(u”whatever”)
llvm-svn: 180930
Diffstat (limited to 'lldb/source/API/SBCommandReturnObject.cpp')
-rw-r--r-- | lldb/source/API/SBCommandReturnObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandReturnObject.cpp b/lldb/source/API/SBCommandReturnObject.cpp index ee7008af3c7..b0533e132db 100644 --- a/lldb/source/API/SBCommandReturnObject.cpp +++ b/lldb/source/API/SBCommandReturnObject.cpp @@ -281,7 +281,7 @@ SBCommandReturnObject::PutCString(const char* string, int len) { if (m_opaque_ap.get()) { - if (len == 0) + if (len == 0 || string == NULL || *string == 0) { return; } |