diff options
author | Christian Heimes <christian@cheimes.de> | 2008-03-26 22:51:58 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-03-26 22:51:58 (GMT) |
commit | 7f23d86107dfea69992322577c5033f2edbc3b4f (patch) | |
tree | e03be6c57d145050c063a147451c61e5fe6cc36f | |
parent | 342212c52afd375d93f44f3ecda0914d77372f26 (diff) | |
download | cpython-7f23d86107dfea69992322577c5033f2edbc3b4f.zip cpython-7f23d86107dfea69992322577c5033f2edbc3b4f.tar.gz cpython-7f23d86107dfea69992322577c5033f2edbc3b4f.tar.bz2 |
Initialize PyCompilerFlags cf_flags with 0
-rw-r--r-- | Python/import.c | 2 | ||||
-rw-r--r-- | Python/pythonrun.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Python/import.c b/Python/import.c index 95cd20d..b65ed0e 100644 --- a/Python/import.c +++ b/Python/import.c @@ -823,6 +823,8 @@ parse_source_module(const char *pathname, FILE *fp) if (arena == NULL) return NULL; + flags.cf_flags = 0; + mod = PyParser_ASTFromFile(fp, pathname, Py_file_input, 0, 0, &flags, NULL, arena); if (mod) { diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 423aae1..39d7327 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1398,6 +1398,8 @@ Py_SymtableString(const char *str, const char *filename, int start) if (arena == NULL) return NULL; + flags.cf_flags = 0; + mod = PyParser_ASTFromString(str, filename, start, &flags, arena); if (mod == NULL) { PyArena_Free(arena); |