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

This commit is contained in:
Georg Brandl 2013-10-14 06:51:46 +02:00
parent 782952b8fe
commit 6083a4bc1c
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -164,7 +164,7 @@ static double
_PyOS_ascii_strtod(const char *nptr, char **endptr)
{
char *fail_pos;
double val = -1.0;
double val;
struct lconv *locale_data;
const char *decimal_point;
size_t decimal_point_len;