summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-11 13:54:07 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-11 13:54:07 (GMT)
commit48fba733b90134e738724f2c03b1eb2dfe0d7325 (patch)
treea5a995bfd721a098adb2bf2fd5cf2997598cdfa2 /Python/ceval.c
parent35ba689caba292bbe5093026eaab43957992c089 (diff)
downloadcpython-48fba733b90134e738724f2c03b1eb2dfe0d7325.zip
cpython-48fba733b90134e738724f2c03b1eb2dfe0d7325.tar.gz
cpython-48fba733b90134e738724f2c03b1eb2dfe0d7325.tar.bz2
Remove the last gcc -Wall warning about possible use of an uninitialized
variable. w should be initialized before entering the bytecode interpretation loop since we only need one initialization to satisfy the compiler.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b6a3add..ca38c68 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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