]> granicus.if.org Git - python/commitdiff
Initialized opcode and oparg to silence a gcc -Wall warning.
authorMoshe Zadka <moshez@math.huji.ac.il>
Mon, 7 Aug 2000 06:34:45 +0000 (06:34 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Mon, 7 Aug 2000 06:34:45 +0000 (06:34 +0000)
Python/ceval.c

index 5822a85006a52f0052a6ac5bdfeef8e13379b55c..9bcb2ad451ac57c3bea12f1d7142f05361515a2e 100644 (file)
@@ -315,8 +315,8 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
        int lastopcode = 0;
 #endif
        register unsigned char *next_instr;
-       register int opcode;    /* Current opcode */
-       register int oparg;     /* Current opcode argument, if any */
+       register int opcode=0;  /* Current opcode */
+       register int oparg=0;   /* Current opcode argument, if any */
        register PyObject **stack_pointer;
        register enum why_code why; /* Reason for block stack unwind */
        register int err;       /* Error status -- nonzero if error */