From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 5 May 2021 04:39:09 +0000 (-0700) Subject: Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909) X-Git-Tag: v3.10.0b2~150 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b19ec7f9df5897755dae14e6f4c7fef2d3bb0406;p=thirdparty%2FPython%2Fcpython.git Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909) --- 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; }