mirror of https://github.com/python/cpython.git
Remove unneeded variable initialization.
Found using Clang's static analyzer.
This commit is contained in:
parent
f7fd8e4c94
commit
949476ee58
|
@ -464,7 +464,6 @@ static PyObject *PySSL_SSLdo_handshake(PySSLObject *self)
|
||||||
|
|
||||||
/* Actually negotiate SSL connection */
|
/* Actually negotiate SSL connection */
|
||||||
/* XXX If SSL_do_handshake() returns 0, it's also a failure. */
|
/* XXX If SSL_do_handshake() returns 0, it's also a failure. */
|
||||||
sockstate = 0;
|
|
||||||
do {
|
do {
|
||||||
PySSL_BEGIN_ALLOW_THREADS
|
PySSL_BEGIN_ALLOW_THREADS
|
||||||
ret = SSL_do_handshake(self->ssl);
|
ret = SSL_do_handshake(self->ssl);
|
||||||
|
@ -1198,7 +1197,6 @@ static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
err = 0;
|
|
||||||
PySSL_BEGIN_ALLOW_THREADS
|
PySSL_BEGIN_ALLOW_THREADS
|
||||||
len = SSL_write(self->ssl, buf.buf, buf.len);
|
len = SSL_write(self->ssl, buf.buf, buf.len);
|
||||||
err = SSL_get_error(self->ssl, len);
|
err = SSL_get_error(self->ssl, len);
|
||||||
|
@ -1317,7 +1315,6 @@ static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
do {
|
do {
|
||||||
err = 0;
|
|
||||||
PySSL_BEGIN_ALLOW_THREADS
|
PySSL_BEGIN_ALLOW_THREADS
|
||||||
count = SSL_read(self->ssl, PyString_AsString(buf), len);
|
count = SSL_read(self->ssl, PyString_AsString(buf), len);
|
||||||
err = SSL_get_error(self->ssl, count);
|
err = SSL_get_error(self->ssl, count);
|
||||||
|
|
Loading…
Reference in New Issue