From 95ca53f3e05ac31b05df64412ed1644fa03f99cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 7 Feb 2010 17:59:51 +0100 Subject: [PATCH] Use ZERO_STRUCTP --- lib/util/util_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/util_net.c b/lib/util/util_net.c index b537e59316b..723c0002e4f 100644 --- a/lib/util/util_net.c +++ b/lib/util/util_net.c @@ -35,7 +35,7 @@ void zero_sockaddr(struct sockaddr_storage *pss) { - memset(pss, '\0', sizeof(*pss)); + ZERO_STRUCTP(pss); /* Ensure we're at least a valid sockaddr-storage. */ pss->ss_family = AF_INET; } -- 2.34.1