]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Re #18521: remove assignments of variables that are immediately reassigned.
authorGeorg Brandl <georg@python.org>
Mon, 14 Oct 2013 04:51:46 +0000 (06:51 +0200)
committerGeorg Brandl <georg@python.org>
Mon, 14 Oct 2013 04:51:46 +0000 (06:51 +0200)
Modules/socketmodule.c
Python/pystrtod.c

index 02cf540c57eff6ad685af1518768a4900d51c6ef..0396bf4ead55949d44c88f83f6f1f7ff299bcad0 100644 (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,
index f8d3b35b9fe9cfc42a440eba7472250cd713d783..b8dd919a26e7b04e86187a3005540bc0ebf22e27 100644 (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;