From: Christian Heimes Date: Wed, 26 Mar 2008 22:51:58 +0000 (+0000) Subject: Initialize PyCompilerFlags cf_flags with 0 X-Git-Tag: v2.6a2~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f23d86107dfea69992322577c5033f2edbc3b4f;p=thirdparty%2FPython%2Fcpython.git Initialize PyCompilerFlags cf_flags with 0 --- diff --git a/Python/import.c b/Python/import.c index 95cd20dffd29..b65ed0e86afa 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 423aae14c079..39d7327dd86e 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);