From 44e8ff3893d186c586d90aebc49271c6dbad2c29 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Sun, 2 Nov 2025 10:11:05 +0000 Subject: [PATCH] Commit --- iconvmodule.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iconvmodule.c b/iconvmodule.c index 9ba42d7..204e8dc 100644 --- a/iconvmodule.c +++ b/iconvmodule.c @@ -189,6 +189,9 @@ PyInit_iconv(void) /* Add some symbolic constants to the module */ d = PyModule_GetDict(m); error = PyErr_NewException("iconv.error", PyExc_ValueError, NULL); + if (error == NULL) { + return NULL; + } PyDict_SetItemString(d, "error", error); return m;