]> granicus.if.org Git - python/commitdiff
st_nested_scopes was uninitialized trash. Jeremy should fix in a better
authorTim Peters <tim.peters@gmail.com>
Sat, 11 Aug 2001 01:06:35 +0000 (01:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 11 Aug 2001 01:06:35 +0000 (01:06 +0000)
way; see code comments.

Python/compile.c

index 66cd00ab8393ffb8073f10520dc83fa34f866d6c..5e150c917df9cd5dbdc4e90f4b1e85c3b07b6033 100644 (file)
@@ -4595,6 +4595,12 @@ symtable_init()
        if (st == NULL)
                return NULL;
        st->st_pass = 1;
+
+       /* XXX Tim: Jeremy deleted the next line and everything went to hell.
+          XXX It should probably get fixed by getting rid of st_nested_scopes
+          XXX entirely. */
+       st->st_nested_scopes = 1;
+
        st->st_filename = NULL;
        if ((st->st_stack = PyList_New(0)) == NULL)
                goto fail;