]> granicus.if.org Git - python/commitdiff
Remove the last gcc -Wall warning about possible use of an uninitialized
authorFred Drake <fdrake@acm.org>
Wed, 11 Oct 2000 13:54:07 +0000 (13:54 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 11 Oct 2000 13:54:07 +0000 (13:54 +0000)
variable.  w should be initialized before entering the bytecode
interpretation loop since we only need one initialization to satisfy the
compiler.

Python/ceval.c

index b6a3addde4df15d608531c3848fc5a0415150b3b..ca38c682c33c3b75a0e2133cb98c13fb3af46fe8 100644 (file)
@@ -578,6 +578,7 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
        why = WHY_NOT;
        err = 0;
        x = Py_None;    /* Not a reference, just anything non-NULL */
+       w = NULL;
        
        for (;;) {
                /* Do periodic things.  Doing this every time through