* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value

return.
This commit is contained in:
Christopher Faylor
2002-11-27 23:44:14 +00:00
parent 46a402e03e
commit 50f4a61a36
2 changed files with 8 additions and 3 deletions

View File

@ -862,9 +862,9 @@ fhandler_socket::sendto (const void *ptr, size_t len, int flags,
DWORD ret;
if (!winsock2_active)
res = ::sendto (get_socket (), (const char *) ptr, len,
flags & MSG_WINMASK,
(to ? (const struct sockaddr *) &sin : NULL), tolen);
ret = res = ::sendto (get_socket (), (const char *) ptr, len,
flags & MSG_WINMASK,
(to ? (const struct sockaddr *) &sin : NULL), tolen);
else
{
WSABUF wsabuf = { len, (char *) ptr };