summaryrefslogtreecommitdiffstats
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-27 00:09:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-27 00:09:50 (GMT)
commitd3a5f53a27be821cfdff869fd8ad93a060497e8c (patch)
treeee22ad4c843e07d067847ffc25cddccb0c09033b /Python/Python-ast.c
parent8d0701daf11e9f93db0b91adad4fc9911752160f (diff)
downloadcpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.zip
cpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.tar.gz
cpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.tar.bz2
Avoid reinitializing the types twice.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r--Python/Python-ast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index cf27129..6935851 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -392,6 +392,7 @@ static int initialized;
static int init_types(void)
{
if (initialized) return 1;
+ initialized = 1;
mod_type = make_type("mod", &PyBaseObject_Type, NULL, 0);
Module_type = make_type("Module", mod_type, Module_fields, 1);
Interactive_type = make_type("Interactive", mod_type,