From: Benjamin Peterson Date: Wed, 1 Jun 2011 02:38:15 +0000 (-0500) Subject: return NULL on error X-Git-Tag: v3.1.4~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52e61449e39b6778d907c65fb2931a2d37c7eef2;p=thirdparty%2FPython%2Fcpython.git return NULL on error --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 7c610a81ca75..4e806e20f62e 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -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());