summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-11-23 21:09:51 (GMT)
committerGuido van Rossum <guido@python.org>1998-11-23 21:09:51 (GMT)
commit014518f66cbf8c93ca6c75d005956b6f622727a8 (patch)
treefcf70ff5fc252794f7cf640b4b99078afd17d8fa /Python/ceval.c
parent5701482ea797604a3f0f1c310738e24605d9107f (diff)
downloadcpython-014518f66cbf8c93ca6c75d005956b6f622727a8.zip
cpython-014518f66cbf8c93ca6c75d005956b6f622727a8.tar.gz
cpython-014518f66cbf8c93ca6c75d005956b6f622727a8.tar.bz2
Whoops! One the "redundant" initializations removed by Vladimir in
the previous patch wasn't -- there was a path through the code that bypassed all initializations. Thanks to Just for reporting the bug!
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index e366072..bcc2288 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -364,7 +364,7 @@ eval_code2(co, globals, locals,
register PyObject *t;
register PyFrameObject *f; /* Current frame */
register PyObject **fastlocals;
- PyObject *retval; /* Return value */
+ PyObject *retval = NULL; /* Return value */
PyThreadState *tstate = PyThreadState_Get();
unsigned char *first_instr;
#ifdef LLTRACE
@@ -1769,7 +1769,7 @@ eval_code2(co, globals, locals,
if (tstate->sys_profilefunc)
call_exc_trace(&tstate->sys_profilefunc,
(PyObject**)0, f);
-}
+ }
/* For the rest, treat WHY_RERAISE as WHY_EXCEPTION */