socket-util: Suppress valgrind uninitialized use warning.
authorEthan Jackson <ethan@nicira.com>
Fri, 26 Aug 2011 23:55:07 +0000 (16:55 -0700)
committerEthan Jackson <ethan@nicira.com>
Sat, 27 Aug 2011 00:18:26 +0000 (17:18 -0700)
lib/socket-util.c

index c436724cd501f44f701bb53e33046af20ffaddeb..2d554ac1812a70ef0927eea19533ab31b9b48ca3 100644 (file)
@@ -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) {