From: Georg Brandl Date: Mon, 14 Oct 2013 04:51:46 +0000 (+0200) Subject: Re #18521: remove assignments of variables that are immediately reassigned. X-Git-Tag: v3.4.0a4~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6083a4bc1c64b7b07cbfc611f8bf38c75a5eebcf;p=thirdparty%2FPython%2Fcpython.git Re #18521: remove assignments of variables that are immediately reassigned. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 02cf540c57ef..0396bf4ead55 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, diff --git a/Python/pystrtod.c b/Python/pystrtod.c index f8d3b35b9fe9..b8dd919a26e7 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -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;