Avoid possible needless call to writev. Found by coverity.

This commit is contained in:
Nick Mathewson 2012-07-26 10:34:06 -04:00
parent 6355b2a4ca
commit 6a4ec5c2b5

View File

@ -2263,6 +2263,8 @@ evbuffer_write_iovec(struct evbuffer *buffer, evutil_socket_t fd,
}
chain = chain->next;
}
if (! i)
return 0;
#ifdef WIN32
{
DWORD bytesSent;