Commit a5a44aba authored by Benjamin Peterson's avatar Benjamin Peterson

remove assignment in conditional

parent 43b49593
...@@ -4207,7 +4207,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args) ...@@ -4207,7 +4207,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args)
goto err; goto err;
} }
if ((all = PyList_New(0)) == NULL) all = PyList_New(0);
if (all == NULL)
goto err; goto err;
for (res = res0; res; res = res->ai_next) { for (res = res0; res; res = res->ai_next) {
PyObject *addr = PyObject *addr =
......
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