diff options
author | Davide Italiano <davide@freebsd.org> | 2019-03-26 16:43:58 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2019-03-26 16:43:58 +0000 |
commit | 5c4fad0c2333a1400e8d731346462fe8b84a8d02 (patch) | |
tree | a3b9eb4b4f54a2c9318cbb28a91b42e59e1a554f /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 0dd67ed46245760129ed7741f4b0986d22967214 (diff) | |
download | bcm5719-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.cpp | 2 |
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 |