Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-21 15:40:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-21 15:40:06 +0300
commit2513b194a219b87f4751a86b6b4b804de6c50f93 (patch)
tree004bbfa7074190dac81ba135f6216c512876caa3 /source/gameengine/Ketsji/KX_PythonInit.cpp
parent2e6a02438e997f1024f3ba6c332314f09f01a3b4 (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.cpp2
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);