summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Larsen <brad.larsen@trailofbits.com>2021-05-05 03:41:11 (GMT)
committerGitHub <noreply@github.com>2021-05-05 03:41:11 (GMT)
commit23362f8c301f72bbf261b56e1af93e8c52f5b6cf (patch)
tree71a45a85fa003a611320fb174472048ffefbe3cf
parent6fdc4d37f3fdbc1bd51f841be6e5e4708a3b8798 (diff)
downloadcpython-23362f8c301f72bbf261b56e1af93e8c52f5b6cf.zip
cpython-23362f8c301f72bbf261b56e1af93e8c52f5b6cf.tar.gz
cpython-23362f8c301f72bbf261b56e1af93e8c52f5b6cf.tar.bz2
Eliminate duplicated assignment in _randommodule.c (GH-25904)
-rw-r--r--Modules/_randommodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index cae49a0..0137e34 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;
}