diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-03-07 06:24:23 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-03-07 06:24:23 +0300 |
commit | b4e13ae575b886d245c4953150cd23edbf91c4ba (patch) | |
tree | 48ed9cbca2f4006ff9412294b3fc37f475b4067f /source/blender/python | |
parent | 5ea3956e4e6398fe27a4ce7d6b1c5a1a29134c40 (diff) |
Another big purge of warnings. (Main culprits this time were Campbell and Geoffrey):
* no newline at end of file (2-3)
* uninitialised vars (1)
* unused vars (1-2)
* assigning/comparing pointers and ints (numerous)
* etc.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/BPY_interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c index d4d91e1a19a..febf5e3ff31 100644 --- a/source/blender/python/BPY_interface.c +++ b/source/blender/python/BPY_interface.c @@ -774,7 +774,7 @@ int BPY_run_script(Script *script) Text *text = NULL; BPy_constant *info; int len; - char *buffer, *s; + char *buffer=NULL, *s; FILE *fp = NULL; @@ -2958,6 +2958,6 @@ void BPY_scripts_clear_pyobjects( void ) Py_XDECREF((PyObject *)script->py_button); Py_XDECREF((PyObject *)script->py_browsercallback); Py_XDECREF((PyObject *)script->py_globaldict); - SCRIPT_SET_NULL(script); + SCRIPT_SET_NULL(script) } -}
\ No newline at end of file +} |