From 7c0b4a23b14920b780f4f7e8f55deb3ed17aa731 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 4 May 2012 03:44:53 +0200 Subject: Zero out resolve return to silence valgrind warning --- src/resolve.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resolve.c b/src/resolve.c index 6848a11..a054290 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -71,6 +71,7 @@ static void* resolve_peer(void *varg) { } fastd_resolve_return ret; + memset(&ret, 0, sizeof(ret)); ret.hostname = arg->hostname; ret.constraints = arg->constraints; -- cgit v1.2.3