]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Eliminate duplicated assignment in _randommodule.c (GH-25904)
authorBrad Larsen <brad.larsen@trailofbits.com>
Wed, 5 May 2021 03:41:11 +0000 (23:41 -0400)
committerGitHub <noreply@github.com>
Wed, 5 May 2021 03:41:11 +0000 (20:41 -0700)
Modules/_randommodule.c

index cae49a009cbcc8f374a3a71161875a4b46135505..0137e34da650a186010953157654b6fe41173c51 100644 (file)
@@ -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;
     }