summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-04 00:57:44 (GMT)
committerBrett Cannon <bcannon@gmail.com>2010-05-04 00:57:44 (GMT)
commit6d7b7be9905a8f823bad3a710af483bf93195c4f (patch)
tree0c39e1eb38177143990a8cb64f7c6264cf8a8044
parent23b581a6f491e1b34fbeda48e56c1b5eb2f097af (diff)
downloadcpython-6d7b7be9905a8f823bad3a710af483bf93195c4f.zip
cpython-6d7b7be9905a8f823bad3a710af483bf93195c4f.tar.gz
cpython-6d7b7be9905a8f823bad3a710af483bf93195c4f.tar.bz2
Remove an unneeded variable assignment.
Found using Clang's static analyzer.
-rw-r--r--Modules/socketmodule.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 0625acb..6b163f4 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3424,7 +3424,6 @@ socket_gethostbyaddr(PyObject *self, PyObject *args)
return NULL;
af = sa->sa_family;
ap = NULL;
- al = 0;
switch (af) {
case AF_INET:
ap = (char *)&((struct sockaddr_in *)sa)->sin_addr;