diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index d6c49c281078..e3bb320c6e55 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