diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-27 23:44:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-27 23:44:14 +0000 |
commit | 50f4a61a360ad3f787d0a42991eaac75d9374609 (patch) | |
tree | be9cee7e53f6bef99adf3769a6115d9e78778184 /winsup/cygwin/fhandler_socket.cc | |
parent | 46a402e03ebd63ab6acce0775ab3158ee5d4f687 (diff) | |
download | cygnal-50f4a61a360ad3f787d0a42991eaac75d9374609.tar.gz cygnal-50f4a61a360ad3f787d0a42991eaac75d9374609.tar.bz2 cygnal-50f4a61a360ad3f787d0a42991eaac75d9374609.zip |
* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value
return.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 7a4465f26..fa44f2e03 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -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 }; |