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!
This commit is contained in:
Guido van Rossum 1998-11-23 21:09:51 +00:00
parent 5701482ea7
commit 014518f66c
1 changed files with 2 additions and 2 deletions

View File

@ -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 */