Initialize PyCompilerFlags cf_flags with 0

This commit is contained in:
Christian Heimes 2008-03-26 22:51:58 +00:00
parent 342212c52a
commit 7f23d86107
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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);