mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
remove assignment in conditional
This commit is contained in:
parent
a16de5dbf5
commit
4fd929b431
1 changed files with 2 additions and 1 deletions
|
@ -5268,7 +5268,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
|
||||||
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 *single;
|
PyObject *single;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue