mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Re #18521: remove assignments of variables that are immediately reassigned.
This commit is contained in:
parent
782952b8fe
commit
6083a4bc1c
2 changed files with 2 additions and 2 deletions
|
@ -5155,7 +5155,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
|
||||||
PyObject *all = (PyObject *)NULL;
|
PyObject *all = (PyObject *)NULL;
|
||||||
PyObject *idna = NULL;
|
PyObject *idna = NULL;
|
||||||
|
|
||||||
family = socktype = protocol = flags = 0;
|
socktype = protocol = flags = 0;
|
||||||
family = AF_UNSPEC;
|
family = AF_UNSPEC;
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|iiii:getaddrinfo",
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|iiii:getaddrinfo",
|
||||||
kwnames, &hobj, &pobj, &family, &socktype,
|
kwnames, &hobj, &pobj, &family, &socktype,
|
||||||
|
|
|
@ -164,7 +164,7 @@ static double
|
||||||
_PyOS_ascii_strtod(const char *nptr, char **endptr)
|
_PyOS_ascii_strtod(const char *nptr, char **endptr)
|
||||||
{
|
{
|
||||||
char *fail_pos;
|
char *fail_pos;
|
||||||
double val = -1.0;
|
double val;
|
||||||
struct lconv *locale_data;
|
struct lconv *locale_data;
|
||||||
const char *decimal_point;
|
const char *decimal_point;
|
||||||
size_t decimal_point_len;
|
size_t decimal_point_len;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue