Skip to content

Commit

Permalink
Initialize PyCompilerFlags cf_flags with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Mar 26, 2008
1 parent 342212c commit 7f23d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/import.c
Expand Up @@ -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) {
Expand Down
2 changes: 2 additions & 0 deletions Python/pythonrun.c
Expand Up @@ -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);
Expand Down

0 comments on commit 7f23d86

Please sign in to comment.