From d3a5f53a27be821cfdff869fd8ad93a060497e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 27 Feb 2006 00:09:50 +0000 Subject: Avoid reinitializing the types twice. --- Python/Python-ast.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/Python-ast.c') diff --git a/Python/Python-ast.c b/Python/Python-ast.c index cf27129183..6935851df3 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, -- cgit v1.2.1