diff options
Diffstat (limited to 'Modules/cmathmodule.c')
-rw-r--r-- | Modules/cmathmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/cmathmodule.c b/Modules/cmathmodule.c index 78b9dd5f8f..ec48ce8d72 100644 --- a/Modules/cmathmodule.c +++ b/Modules/cmathmodule.c @@ -417,6 +417,8 @@ initcmath(void) PyObject *m; m = Py_InitModule3("cmath", cmath_methods, module_doc); + if (m == NULL) + return; PyModule_AddObject(m, "pi", PyFloat_FromDouble(atan(1.0) * 4.0)); |