commit | 4fd929b431214678184bddc7a5bb5c610dda5485 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Wed Apr 01 11:16:40 2015 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Wed Apr 01 11:16:40 2015 -0400 |
tree | 0340f1fca1e9fbdfe9a56f0f5705ebcc74252883 | |
parent | a16de5dbf54ea9fbad33982482122f6abdd19425 [diff] [blame] |
remove assignment in conditional
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 @@ 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;