summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 176f024..4c03602 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -2481,6 +2481,8 @@ init_curses(void)
/* Create the module and add the functions */
m = Py_InitModule("_curses", PyCurses_methods);
+ if (m == NULL)
+ return;
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);