summaryrefslogtreecommitdiffstats
path: root/PC/_subprocess.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/_subprocess.c')
-rw-r--r--PC/_subprocess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/_subprocess.c b/PC/_subprocess.c
index 8ed4899..b675b88 100644
--- a/PC/_subprocess.c
+++ b/PC/_subprocess.c
@@ -553,6 +553,8 @@ init_subprocess()
sp_handle_as_number.nb_int = (unaryfunc) sp_handle_as_int;
m = Py_InitModule("_subprocess", sp_functions);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
/* constants */