Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50cd348

Browse files
committed
Remove some redundant initializations -- patch by Vladimir Marangozov.
1 parent 6d06094 commit 50cd348

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/ceval.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ eval_code2(co, globals, locals,
352352
int lastopcode = 0;
353353
#endif
354354
register unsigned char *next_instr;
355-
register int opcode = 0; /* Current opcode */
356-
register int oparg = 0; /* Current opcode argument, if any */
355+
register int opcode; /* Current opcode */
356+
register int oparg; /* Current opcode argument, if any */
357357
register PyObject **stack_pointer;
358358
register enum why_code why; /* Reason for block stack unwind */
359359
register int err; /* Error status -- nonzero if error */
@@ -363,8 +363,8 @@ eval_code2(co, globals, locals,
363363
register PyObject *u;
364364
register PyObject *t;
365365
register PyFrameObject *f; /* Current frame */
366-
register PyObject **fastlocals = NULL;
367-
PyObject *retval = NULL; /* Return value */
366+
register PyObject **fastlocals;
367+
PyObject *retval; /* Return value */
368368
PyThreadState *tstate = PyThreadState_Get();
369369
unsigned char *first_instr;
370370
#ifdef LLTRACE

0 commit comments

Comments
 (0)