Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 9513:350f24180dcb legacy-trunk
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!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 23 Nov 1998 21:09:51 +0000 |
| parents | b75d93ec8e5a |
| children | 7f90736701a3 |
line wrap: on
line diff
--- a/Python/ceval.c Mon Nov 23 18:21:54 1998 +0000 +++ b/Python/ceval.c Mon Nov 23 21:09:51 1998 +0000 @@ -364,7 +364,7 @@ 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 @@ if (tstate->sys_profilefunc) call_exc_trace(&tstate->sys_profilefunc, (PyObject**)0, f); -} + } /* For the rest, treat WHY_RERAISE as WHY_EXCEPTION */
