summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-06-01 02:38:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-06-01 02:38:15 (GMT)
commit52e61449e39b6778d907c65fb2931a2d37c7eef2 (patch)
tree2a850519b78662d2e1b637190e8639905236db11 /Modules
parenta22c98de8507b18ed0c0933f81e6b0ab63467d11 (diff)
downloadcpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.zip
cpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.tar.gz
cpython-52e61449e39b6778d907c65fb2931a2d37c7eef2.tar.bz2
return NULL on error
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 7c610a8..4e806e2 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());