Skip to content

Commit 44e8ff3

Browse files
Commit
1 parent 1a08330 commit 44e8ff3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

iconvmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ PyInit_iconv(void)
189189
/* Add some symbolic constants to the module */
190190
d = PyModule_GetDict(m);
191191
error = PyErr_NewException("iconv.error", PyExc_ValueError, NULL);
192+
if (error == NULL) {
193+
return NULL;
194+
}
192195
PyDict_SetItemString(d, "error", error);
193196

194197
return m;

0 commit comments

Comments
 (0)