2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

socket-util: Suppress valgrind uninitialized use warning.

This commit is contained in:
Ethan Jackson
2011-08-26 16:55:07 -07:00
parent 3eda9831a4
commit 6d8ffe1898

View File

@@ -222,7 +222,7 @@ int
drain_rcvbuf(int fd) drain_rcvbuf(int fd)
{ {
socklen_t rcvbuf_len; socklen_t rcvbuf_len;
size_t rcvbuf; size_t rcvbuf = 0;
rcvbuf_len = sizeof rcvbuf; rcvbuf_len = sizeof rcvbuf;
if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, &rcvbuf_len) < 0) { if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, &rcvbuf_len) < 0) {