Skip to content

Commit 6083a4b

Browse files
committed
Re #18521: remove assignments of variables that are immediately reassigned.
1 parent 782952b commit 6083a4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5155,7 +5155,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
51555155
PyObject *all = (PyObject *)NULL;
51565156
PyObject *idna = NULL;
51575157

5158-
family = socktype = protocol = flags = 0;
5158+
socktype = protocol = flags = 0;
51595159
family = AF_UNSPEC;
51605160
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "OO|iiii:getaddrinfo",
51615161
kwnames, &hobj, &pobj, &family, &socktype,

Python/pystrtod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static double
164164
_PyOS_ascii_strtod(const char *nptr, char **endptr)
165165
{
166166
char *fail_pos;
167-
double val = -1.0;
167+
double val;
168168
struct lconv *locale_data;
169169
const char *decimal_point;
170170
size_t decimal_point_len;

0 commit comments

Comments
 (0)