From 5c4fad0c2333a1400e8d731346462fe8b84a8d02 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Tue, 26 Mar 2019 16:43:58 +0000 Subject: [ScriptInterpreterPython] Try to make the sanitizer bot green again. Removing a use-after-free error. llvm-svn: 357006 --- .../source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp') 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 -- cgit v1.2.3