From: Benjamin Peterson Date: Wed, 1 Apr 2015 15:16:40 +0000 (-0400) Subject: remove assignment in conditional X-Git-Tag: v3.5.0a4~93^2^2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fd929b431214678184bddc7a5bb5c610dda5485;p=python remove assignment in conditional --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e9feba378e..e9e482e874 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -5268,7 +5268,8 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs) 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 *single;