summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-14 04:51:46 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-14 04:51:46 (GMT)
commit6083a4bc1c64b7b07cbfc611f8bf38c75a5eebcf (patch)
tree7f551184c5cb3362b42b9b4478bf4ad00103b0c7 /Modules
parent782952b8fe7fd8b22987e71fd5e21526559540ff (diff)
downloadcpython-6083a4bc1c64b7b07cbfc611f8bf38c75a5eebcf.zip
cpython-6083a4bc1c64b7b07cbfc611f8bf38c75a5eebcf.tar.gz
cpython-6083a4bc1c64b7b07cbfc611f8bf38c75a5eebcf.tar.bz2
Re #18521: remove assignments of variables that are immediately reassigned.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 02cf540..0396bf4 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -5155,7 +5155,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
PyObject *all = (PyObject *)NULL;
PyObject *idna = NULL;
- family = socktype = protocol = flags = 0;
+ socktype = protocol = flags = 0;
family = AF_UNSPEC;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|iiii:getaddrinfo",
kwnames, &hobj, &pobj, &family, &socktype,