summaryrefslogtreecommitdiffstats
path: root/src/resolve.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-05-04 03:44:53 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-05-04 03:44:53 +0200
commit7c0b4a23b14920b780f4f7e8f55deb3ed17aa731 (patch)
tree779182adb738251db38aa741a8255aeff9af2812 /src/resolve.c
parent6e39dfe32584e9edaa45d0df31765839dae219c5 (diff)
downloadfastd-7c0b4a23b14920b780f4f7e8f55deb3ed17aa731.tar
fastd-7c0b4a23b14920b780f4f7e8f55deb3ed17aa731.zip
Zero out resolve return to silence valgrind warning
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c1
1 files changed, 1 insertions, 0 deletions
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;