From 52e61449e39b6778d907c65fb2931a2d37c7eef2 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 31 May 2011 21:38:15 -0500 Subject: [PATCH] return NULL on error --- Modules/pyexpat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 7c610a81ca7..4e806e20f62 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());