From: Brandt Bucher Date: Thu, 21 Nov 2019 00:17:03 +0000 (-0800) Subject: bpo-38823: Clean up _xxtestfuzz initialization. (GH-17216) X-Git-Tag: v3.9.0a2~158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5d1f734db135e284af8e8868e7ccc85355952b9;p=thirdparty%2FPython%2Fcpython.git bpo-38823: Clean up _xxtestfuzz initialization. (GH-17216) https://bugs.python.org/issue38823 --- diff --git a/Modules/_xxtestfuzz/_xxtestfuzz.c b/Modules/_xxtestfuzz/_xxtestfuzz.c index 781dd23500a2..e0694de6719d 100644 --- a/Modules/_xxtestfuzz/_xxtestfuzz.c +++ b/Modules/_xxtestfuzz/_xxtestfuzz.c @@ -44,10 +44,5 @@ static struct PyModuleDef _fuzzmodule = { PyMODINIT_FUNC PyInit__xxtestfuzz(void) { - PyObject *m = NULL; - - if ((m = PyModule_Create(&_fuzzmodule)) == NULL) { - return NULL; - } - return m; + return PyModule_Create(&_fuzzmodule); }