summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2019-03-26 16:43:58 +0000
committerDavide Italiano <davide@freebsd.org>2019-03-26 16:43:58 +0000
commit5c4fad0c2333a1400e8d731346462fe8b84a8d02 (patch)
treea3b9eb4b4f54a2c9318cbb28a91b42e59e1a554f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent0dd67ed46245760129ed7741f4b0986d22967214 (diff)
downloadbcm5719-llvm-5c4fad0c2333a1400e8d731346462fe8b84a8d02.tar.gz
bcm5719-llvm-5c4fad0c2333a1400e8d731346462fe8b84a8d02.zip
[ScriptInterpreterPython] Try to make the sanitizer bot green again.
Removing a use-after-free error. llvm-svn: 357006
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index d6c49c28107..e3bb320c6e5 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -322,7 +322,7 @@ private:
// priorities in the path, overriding PYTHONHOME and causing
// problems/incompatibilities. In order to avoid confusion, always hardcode
// the PythonHome to be right, as it's not going to change.
- char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
+ static char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
Py_SetPythonHome(path);
#endif
#endif
OpenPOWER on IntegriCloud