diff options
Diffstat (limited to 'Modules/sunaudiodev.c')
-rw-r--r-- | Modules/sunaudiodev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c index 3269c761d6..802184d0d6 100644 --- a/Modules/sunaudiodev.c +++ b/Modules/sunaudiodev.c @@ -456,6 +456,8 @@ initsunaudiodev(void) PyObject *m, *d; m = Py_InitModule("sunaudiodev", sunaudiodev_methods); + if (m == NULL) + return; d = PyModule_GetDict(m); SunAudioError = PyErr_NewException("sunaudiodev.error", NULL, NULL); if (SunAudioError) |