From fb4f255c15cdc5616c8b00cd74c59e7002f38f5a Mon Sep 17 00:00:00 2001 From: Willian Padovani Germano Date: Mon, 19 Apr 2004 10:19:41 +0000 Subject: BPython: - Scripts that ended without an [eol] (end of line char) would give syntax errors when called from menus. Now all loaded menu scripts have '\\n\\0' appended to them, not only '\\0' as before. - bug #1146: Kester reported a Valgrind warning, should be fixed now. --- source/blender/python/BPY_menus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/python/BPY_menus.c') diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index d947eaa12e1..628f24b35f2 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -668,8 +668,8 @@ int BPyMenu_Init(int usedir) char fname[FILE_MAXDIR+FILE_MAXFILE]; char dirname[FILE_MAXDIR]; char *upydir = U.pythondir; - time_t tdir1, tdir2, tfile; - int res1, res2, resf = 0; + time_t tdir1 = 0, tdir2 = 0, tfile = 0; + int res1 = 0, res2 = 0, resf = 0; DEBUG = G.f & G_DEBUG; /* is Blender in debug mode (started with -d) ? */ -- cgit v1.2.3