Commit 52e61449 authored by Benjamin Peterson's avatar Benjamin Peterson

return NULL on error

parent a22c98de
......@@ -1805,7 +1805,7 @@ MODULE_INITFUNC(void)
version = PyUnicode_FromString(PY_VERSION);
if (!version)
return;
return NULL;
PyModule_AddObject(m, "__version__", version);
PyModule_AddStringConstant(m, "EXPAT_VERSION",
(char *) XML_ExpatVersion());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment