Commits

Benjamin Peterson  committed 0639e63

return NULL on error

  • Participants
  • Parent commits 9c23efa
  • Branches 3.1

Comments (0)

Files changed (1)

File Modules/pyexpat.c

 
     version = PyUnicode_FromString(PY_VERSION);
     if (!version)
-        return;
+        return NULL;
     PyModule_AddObject(m, "__version__", version);
     PyModule_AddStringConstant(m, "EXPAT_VERSION",
                                (char *) XML_ExpatVersion());