summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-04-01 15:16:40 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-04-01 15:16:40 (GMT)
commit4fd929b431214678184bddc7a5bb5c610dda5485 (patch)
tree0340f1fca1e9fbdfe9a56f0f5705ebcc74252883 /Modules/socketmodule.c
parenta16de5dbf54ea9fbad33982482122f6abdd19425 (diff)
downloadcpython-4fd929b431214678184bddc7a5bb5c610dda5485.zip
cpython-4fd929b431214678184bddc7a5bb5c610dda5485.tar.gz
cpython-4fd929b431214678184bddc7a5bb5c610dda5485.tar.bz2
remove assignment in conditional
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e9feba3..e9e482e 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;