Skip to content

Commit 4fd929b

Browse files
committed
remove assignment in conditional
1 parent a16de5d commit 4fd929b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/socketmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5268,7 +5268,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
52685268
goto err;
52695269
}
52705270

5271-
if ((all = PyList_New(0)) == NULL)
5271+
all = PyList_New(0);
5272+
if (all == NULL)
52725273
goto err;
52735274
for (res = res0; res; res = res->ai_next) {
52745275
PyObject *single;

0 commit comments

Comments
 (0)