summaryrefslogtreecommitdiffstats
path: root/Modules/audioop.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r--Modules/audioop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c
index 52824b8..8d5a305 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -1374,6 +1374,8 @@ initaudioop(void)
{
PyObject *m, *d;
m = Py_InitModule("audioop", audioop_methods);
+ if (m == NULL)
+ return;
d = PyModule_GetDict(m);
AudioopError = PyErr_NewException("audioop.error", NULL, NULL);
if (AudioopError != NULL)