summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2010-05-03 23:41:23 +0000
committerBrett Cannon <bcannon@gmail.com>2010-05-03 23:41:23 +0000
commitaa0d04c35931b5130852fd1e5cb0a30cdba4f2a5 (patch)
tree8d19da3bf6ed735f7b4cac14a0257a2fcd6e4143 /Modules
parentf2c63e3aa19ffb2ccea21a3190be3f6672d53f4f (diff)
downloadcpython-aa0d04c35931b5130852fd1e5cb0a30cdba4f2a5.tar.gz
Remove unneeded variable initialization.
Found using Clang's static analyzer.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index eef658843e..44f9386607 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -464,7 +464,6 @@ static PyObject *PySSL_SSLdo_handshake(PySSLObject *self)
/* Actually negotiate SSL connection */
/* XXX If SSL_do_handshake() returns 0, it's also a failure. */
- sockstate = 0;
do {
PySSL_BEGIN_ALLOW_THREADS
ret = SSL_do_handshake(self->ssl);
@@ -1198,7 +1197,6 @@ static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args)
goto error;
}
do {
- err = 0;
PySSL_BEGIN_ALLOW_THREADS
len = SSL_write(self->ssl, buf.buf, buf.len);
err = SSL_get_error(self->ssl, len);
@@ -1317,7 +1315,6 @@ static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args)
}
}
do {
- err = 0;
PySSL_BEGIN_ALLOW_THREADS
count = SSL_read(self->ssl, PyString_AsString(buf), len);
err = SSL_get_error(self->ssl, count);