diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-11 01:06:35 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-11 01:06:35 (GMT) |
commit | ff1f8521ace7449743f93e5de3d58752f42eca08 (patch) | |
tree | 7fa70f44d60cdab1a0e4f8fe45acbe3d2b48709b /Python | |
parent | 1cf0f1751f32ba4bcc90704b0723b674331d3fd3 (diff) | |
download | cpython-ff1f8521ace7449743f93e5de3d58752f42eca08.zip cpython-ff1f8521ace7449743f93e5de3d58752f42eca08.tar.gz cpython-ff1f8521ace7449743f93e5de3d58752f42eca08.tar.bz2 |
st_nested_scopes was uninitialized trash. Jeremy should fix in a better
way; see code comments.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 66cd00a..5e150c9 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; |