[Python-checkins] r64035 - python/branches/tlee-ast-optimize/Python/pythonrun.c
thomas.lee
python-checkins at python.org
Sun Jun 8 10:47:34 CEST 2008
Author: thomas.lee
Date: Sun Jun 8 10:47:34 2008
New Revision: 64035
Log:
Fix a potential bug introduced during my changes for symtable-generation-before-compile.
Modified:
python/branches/tlee-ast-optimize/Python/pythonrun.c
Modified: python/branches/tlee-ast-optimize/Python/pythonrun.c
==============================================================================
--- python/branches/tlee-ast-optimize/Python/pythonrun.c (original)
+++ python/branches/tlee-ast-optimize/Python/pythonrun.c Sun Jun 8 10:47:34 2008
@@ -1324,7 +1324,7 @@
run_mod(mod_ty mod, const char *filename, PyObject *globals, PyObject *locals,
PyCompilerFlags *flags, PyArena *arena)
{
- PyCodeObject *co;
+ PyCodeObject *co = NULL;
PyObject *v = NULL;
PyCompilerInfo ci;
@@ -1392,7 +1392,7 @@
Py_CompileStringFlags(const char *str, const char *filename, int start,
PyCompilerFlags *flags)
{
- PyCodeObject *co;
+ PyCodeObject *co = NULL;
mod_ty mod;
PyCompilerInfo ci;
PyArena *arena = PyArena_New();
More information about the Python-checkins
mailing list