diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-21 15:40:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-21 15:40:06 +0300 |
commit | 2513b194a219b87f4751a86b6b4b804de6c50f93 (patch) | |
tree | 004bbfa7074190dac81ba135f6216c512876caa3 /source/gameengine/Ketsji/KX_PythonInit.cpp | |
parent | 2e6a02438e997f1024f3ba6c332314f09f01a3b4 (diff) |
pedantic edit, no need to initialize var.
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 5d5367653b7..95831b38bfa 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -642,7 +642,6 @@ static PyObject *gLibLoad(PyObject*, PyObject* args) { KX_Scene *kx_scene= gp_KetsjiScene; char *path; - char abs_path[FILE_MAX] = {0}; char *group; Py_buffer py_buffer; py_buffer.buf = NULL; @@ -653,6 +652,7 @@ static PyObject *gLibLoad(PyObject*, PyObject* args) if (!py_buffer.buf) { + char abs_path[FILE_MAX]; // Make the path absolute BLI_strncpy(abs_path, path, sizeof(abs_path)); BLI_path_abs(abs_path, gp_GamePythonPath); |