]> granicus.if.org Git - python/commitdiff
return NULL on error
authorBenjamin Peterson <benjamin@python.org>
Wed, 1 Jun 2011 02:38:15 +0000 (21:38 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 1 Jun 2011 02:38:15 +0000 (21:38 -0500)
Modules/pyexpat.c

index 7c610a81ca752e545caafc72af2302fc9fab2bd3..4e806e20f62e76cdd76684cc52d3e3c4ddb429d8 100644 (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());