diff options
Diffstat (limited to 'Modules/cdmodule.c')
-rw-r--r-- | Modules/cdmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/cdmodule.c b/Modules/cdmodule.c index 25add3e..f8efd39 100644 --- a/Modules/cdmodule.c +++ b/Modules/cdmodule.c @@ -760,6 +760,8 @@ initcd(void) PyObject *m, *d; m = Py_InitModule("cd", CD_methods); + if (m == NULL) + return; d = PyModule_GetDict(m); CdError = PyErr_NewException("cd.error", NULL, NULL); |