From e3713176860dce07255c8ee773eaa4715323c9e7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 7 Feb 2010 17:57:56 +0100 Subject: use ZERO_STRUCT --- lib/util/util_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/util/util_net.c b/lib/util/util_net.c index 723c0002e4..9e47f51764 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -49,7 +49,8 @@ bool interpret_string_addr_internal(struct addrinfo **ppres, int ret; struct addrinfo hints; - memset(&hints, '\0', sizeof(hints)); + ZERO_STRUCT(hints); + /* By default make sure it supports TCP. */ hints.ai_socktype = SOCK_STREAM; hints.ai_flags = flags; -- cgit