Kaydet (Commit) 014518f6 authored tarafından Guido van Rossum's avatar Guido van Rossum

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!
üst 5701482e
...@@ -364,7 +364,7 @@ eval_code2(co, globals, locals, ...@@ -364,7 +364,7 @@ eval_code2(co, globals, locals,
register PyObject *t; register PyObject *t;
register PyFrameObject *f; /* Current frame */ register PyFrameObject *f; /* Current frame */
register PyObject **fastlocals; register PyObject **fastlocals;
PyObject *retval; /* Return value */ PyObject *retval = NULL; /* Return value */
PyThreadState *tstate = PyThreadState_Get(); PyThreadState *tstate = PyThreadState_Get();
unsigned char *first_instr; unsigned char *first_instr;
#ifdef LLTRACE #ifdef LLTRACE
...@@ -1769,7 +1769,7 @@ eval_code2(co, globals, locals, ...@@ -1769,7 +1769,7 @@ eval_code2(co, globals, locals,
if (tstate->sys_profilefunc) if (tstate->sys_profilefunc)
call_exc_trace(&tstate->sys_profilefunc, call_exc_trace(&tstate->sys_profilefunc,
(PyObject**)0, f); (PyObject**)0, f);
} }
/* For the rest, treat WHY_RERAISE as WHY_EXCEPTION */ /* For the rest, treat WHY_RERAISE as WHY_EXCEPTION */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment