From 4f1d49615e1407b9c3ad5eeb50a248b8fee50e23 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 29 Mar 2008 17:20:15 +0100 Subject: [PATCH] Make use of ZERO_STRUCT instead of memset in namequery.c --- source/libsmb/namequery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index 0191bf76187..893c9265fd2 100644 --- a/source/libsmb/namequery.c +++ b/source/libsmb/namequery.c @@ -1270,7 +1270,7 @@ static NTSTATUS resolve_hosts(const char *name, int name_type, continue; } - memset(&ss, '\0', sizeof(ss)); + ZERO_STRUCT(ss); memcpy(&ss, res->ai_addr, res->ai_addrlen); *return_count += 1;