summaryrefslogtreecommitdiffstats
path: root/Modules/_localemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_localemodule.c')
-rw-r--r--Modules/_localemodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index bd57c2f..2d84d80 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -715,6 +715,8 @@ init_locale(void)
#endif
m = Py_InitModule("_locale", PyLocale_Methods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);