Skip to content

Commit fe363f5

Browse files
author
christian.heimes
committed
Initialize PyCompilerFlags cf_flags with 0
git-svn-id: http://svn.python.org/projects/python/trunk@61956 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent a2433a6 commit fe363f5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Python/import.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,8 @@ parse_source_module(const char *pathname, FILE *fp)
823823
if (arena == NULL)
824824
return NULL;
825825

826+
flags.cf_flags = 0;
827+
826828
mod = PyParser_ASTFromFile(fp, pathname, Py_file_input, 0, 0, &flags,
827829
NULL, arena);
828830
if (mod) {

Python/pythonrun.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,8 @@ Py_SymtableString(const char *str, const char *filename, int start)
13981398
if (arena == NULL)
13991399
return NULL;
14001400

1401+
flags.cf_flags = 0;
1402+
14011403
mod = PyParser_ASTFromString(str, filename, start, &flags, arena);
14021404
if (mod == NULL) {
14031405
PyArena_Free(arena);

0 commit comments

Comments
 (0)