From: Ethan Jackson Date: Fri, 26 Aug 2011 23:55:07 +0000 (-0700) Subject: socket-util: Suppress valgrind uninitialized use warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d8ffe18982370d2c46665d7924c340030d53565;p=openvswitch socket-util: Suppress valgrind uninitialized use warning. --- diff --git a/lib/socket-util.c b/lib/socket-util.c index c436724c..2d554ac1 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -222,7 +222,7 @@ int drain_rcvbuf(int fd) { socklen_t rcvbuf_len; - size_t rcvbuf; + size_t rcvbuf = 0; rcvbuf_len = sizeof rcvbuf; if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, &rcvbuf_len) < 0) {