From 6d8ffe18982370d2c46665d7924c340030d53565 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Fri, 26 Aug 2011 16:55:07 -0700 Subject: [PATCH] socket-util: Suppress valgrind uninitialized use warning. --- lib/socket-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.30.2