[Nice] [nice/master] initialize the sockaddr correctly.. with this commit, libnice now passes valgrind checks

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Nov 12 17:01:48 PST 2008


---
 stun/tests/test-bind.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/stun/tests/test-bind.c b/stun/tests/test-bind.c
index 63eca2f..2e25dd9 100644
--- a/stun/tests/test-bind.c
+++ b/stun/tests/test-bind.c
@@ -395,7 +395,7 @@ static void responses (void)
 
 static void keepalive (void)
 {
-  struct sockaddr_storage addr;
+  struct sockaddr_storage addr = {0};
   socklen_t addrlen = sizeof (addr);
   int val, servfd, fd;
 
-- 
1.5.6.5




More information about the Nice mailing list