summaryrefslogtreecommitdiff
path: root/lib/canon-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/canon-host.c')
-rw-r--r--lib/canon-host.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/canon-host.c b/lib/canon-host.c
index a36428db6..0d469ba1a 100644
--- a/lib/canon-host.c
+++ b/lib/canon-host.c
@@ -54,9 +54,8 @@ canon_host (char const *host)
#if HAVE_GETADDRINFO
{
- struct addrinfo hint;
+ struct addrinfo hint = { 0, };
struct addrinfo *res = NULL;
- memset (&hint, 0, sizeof hint);
hint.ai_flags = AI_CANONNAME;
if (getaddrinfo (host, NULL, &hint, &res) == 0)
{