diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-26 22:12:35 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-26 22:12:35 (GMT) |
commit | 2b366e41c3eee597923263497fc3a631c049c320 (patch) | |
tree | 27091de1b4472fa662660c1cf918ada6dff4904c | |
parent | ce1d5d2527810961f7fe8f7a64d9e54075da482e (diff) | |
download | cpython-2b366e41c3eee597923263497fc3a631c049c320.zip cpython-2b366e41c3eee597923263497fc3a631c049c320.tar.gz cpython-2b366e41c3eee597923263497fc3a631c049c320.tar.bz2 |
Check whether there are flags.
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 3cb03dc..2a6afe2 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1254,7 +1254,7 @@ Py_CompileStringFlags(const char *str, const char *filename, int start, PyArena_Free(arena); return NULL; } - if (flags->cf_flags & PyCF_ONLY_AST) { + if (flags && (flags->cf_flags & PyCF_ONLY_AST)) { PyObject *result = PyAST_mod2obj(mod); PyArena_Free(arena); return result; |