From 7f23d86107dfea69992322577c5033f2edbc3b4f Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 26 Mar 2008 22:51:58 +0000 Subject: Initialize PyCompilerFlags cf_flags with 0 --- Python/import.c | 2 ++ Python/pythonrun.c | 2 ++ 2 files changed, 4 insertions(+) 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); -- cgit v0.12