[Python-checkins] r42582 - python/trunk/Python/pythonrun.c

martin.v.loewis python-checkins at python.org
Sun Feb 26 23:12:37 CET 2006


Author: martin.v.loewis
Date: Sun Feb 26 23:12:35 2006
New Revision: 42582

Modified:
   python/trunk/Python/pythonrun.c
Log:
Check whether there are flags.


Modified: python/trunk/Python/pythonrun.c
==============================================================================
--- python/trunk/Python/pythonrun.c	(original)
+++ python/trunk/Python/pythonrun.c	Sun Feb 26 23:12:35 2006
@@ -1254,7 +1254,7 @@
                 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;


More information about the Python-checkins mailing list