diff options
| author | Benjamin Peterson <benjamin@python.org> | 2015-04-01 15:16:40 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2015-04-01 15:16:40 (GMT) |
| commit | a5a44aba3f0e21753314ca6cfd766083a22b387f (patch) | |
| tree | 98693ea8aac5224bbaf19621abe631adc8640846 | |
| parent | 43b49593e700baeb7bf2be9dd1877eee5829e9e3 (diff) | |
| download | cpython-a5a44aba3f0e21753314ca6cfd766083a22b387f.zip cpython-a5a44aba3f0e21753314ca6cfd766083a22b387f.tar.gz cpython-a5a44aba3f0e21753314ca6cfd766083a22b387f.tar.bz2 | |
remove assignment in conditional
| -rw-r--r-- | Modules/socketmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index e9e4479..cbc3223 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 = |
