From: Brad Larsen Date: Wed, 5 May 2021 03:41:11 +0000 (-0400) Subject: Eliminate duplicated assignment in _randommodule.c (GH-25904) X-Git-Tag: v3.11.0a1~1203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23362f8c301f72bbf261b56e1af93e8c52f5b6cf;p=thirdparty%2FPython%2Fcpython.git Eliminate duplicated assignment in _randommodule.c (GH-25904) --- diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c index cae49a009cbc..0137e34da650 100644 --- a/Modules/_randommodule.c +++ b/Modules/_randommodule.c @@ -597,7 +597,7 @@ _random_exec(PyObject *module) } /* Look up and save int.__abs__, which is needed in random_seed(). */ - PyObject *longval = longval = PyLong_FromLong(0); + PyObject *longval = PyLong_FromLong(0); if (longval == NULL) { return -1; }