]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove assignment in conditional
authorBenjamin Peterson <benjamin@python.org>
Wed, 1 Apr 2015 15:16:40 +0000 (11:16 -0400)
committerBenjamin Peterson <benjamin@python.org>
Wed, 1 Apr 2015 15:16:40 +0000 (11:16 -0400)
Modules/socketmodule.c

index e9e4479a667870293461ef22f8b3e15502174fe7..cbc3223d9894e202574b0aa8cf8d7c3ca0b38cc5 100644 (file)
@@ -4207,7 +4207,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args)
         goto err;
     }
 
-    if ((all = PyList_New(0)) == NULL)
+    all = PyList_New(0);
+    if (all == NULL)
         goto err;
     for (res = res0; res; res = res->ai_next) {
         PyObject *addr =