diff options
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index db9dd3268c..00239bd0c4 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -1158,6 +1158,8 @@ initgc(void) gc__doc__, NULL, PYTHON_API_VERSION); + if (m == NULL) + return; if (garbage == NULL) { garbage = PyList_New(0); |