mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Remove extraneous variable 'total', as reported by James Rucker.
This commit is contained in:
parent
e12454f44a
commit
e6cc5b68bf
1 changed files with 1 additions and 2 deletions
|
@ -1497,7 +1497,7 @@ static PyObject *
|
|||
PySocketSock_sendall(PySocketSockObject *s, PyObject *args)
|
||||
{
|
||||
char *buf;
|
||||
int len, n, flags = 0, total = 0;
|
||||
int len, n, flags = 0;
|
||||
if (!PyArg_ParseTuple(args, "s#|i:sendall", &buf, &len, &flags))
|
||||
return NULL;
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
|
@ -1505,7 +1505,6 @@ PySocketSock_sendall(PySocketSockObject *s, PyObject *args)
|
|||
n = send(s->sock_fd, buf, len, flags);
|
||||
if (n < 0)
|
||||
break;
|
||||
total += n;
|
||||
buf += n;
|
||||
len -= n;
|
||||
} while (len > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue