Kaydet (Commit) 6083a4bc authored tarafından Georg Brandl's avatar Georg Brandl

Re #18521: remove assignments of variables that are immediately reassigned.

üst 782952b8
...@@ -5155,7 +5155,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs) ...@@ -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 ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment