return NULL on error

This commit is contained in:
Benjamin Peterson 2011-05-31 21:38:15 -05:00
parent a22c98de85
commit 52e61449e3

View File

@ -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());