projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eda983
)
socket-util: Suppress valgrind uninitialized use warning.
author
Ethan Jackson
<ethan@nicira.com>
Fri, 26 Aug 2011 23:55:07 +0000
(16:55 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Sat, 27 Aug 2011 00:18:26 +0000
(17:18 -0700)
lib/socket-util.c
patch
|
blob
|
history
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index c436724cd501f44f701bb53e33046af20ffaddeb..2d554ac1812a70ef0927eea19533ab31b9b48ca3 100644
(file)
--- 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) {