Fixed valgrind warning in the udp_module.

Review URL: http://webrtc-codereview.appspot.com/45004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@109 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
hellner@google.com 2011-06-20 23:06:04 +00:00
parent ba28d7fd4e
commit 305651ca78

View File

@ -27,7 +27,7 @@ namespace webrtc {
UdpSocketLinux::UdpSocketLinux(const WebRtc_Word32 id, UdpSocketManager* mgr,
bool ipV6Enable)
{
WEBRTC_TRACE(kTraceMemory, kTraceTransport, _id,
WEBRTC_TRACE(kTraceMemory, kTraceTransport, id,
"UdpSocketLinux::UdpSocketLinux()");
_wantsIncoming = false;
@ -179,6 +179,7 @@ void UdpSocketLinux::HasIncoming()
memset(&sockaddrfrom, 0, sizeof(sockaddrfrom));
socklen_t fromlen = sizeof(sockaddrfrom);
#else
memset(&from, 0, sizeof(from));
socklen_t fromlen = sizeof(from);
#endif