diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:01:00 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-24 01:01:00 +0000 |
commit | 23629167fefb8117a4d2cc9213c8a29d5b4a1197 (patch) | |
tree | c410512ef1b5e0f0e81b7f333cafabc3ad716f5d /scripts | |
parent | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (diff) |
Notes
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Python/python-typemaps.swig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Python/python-typemaps.swig b/scripts/Python/python-typemaps.swig index df16a6d27b3b9..29e5d9b156df2 100644 --- a/scripts/Python/python-typemaps.swig +++ b/scripts/Python/python-typemaps.swig @@ -102,7 +102,8 @@ %typemap(argout) (char *dst, size_t dst_len) { Py_XDECREF($result); /* Blow away any previous result */ if (result == 0) { - $result = Py_None; + lldb_private::PythonString string(""); + $result = string.release(); Py_INCREF($result); } else { llvm::StringRef ref(static_cast<const char*>($1), result); |