1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Make use of ZERO_STRUCT instead of memset in namequery.c

This commit is contained in:
Volker Lendecke 2008-03-29 17:20:15 +01:00
parent 3b4a402bc5
commit 4f1d49615e

View File

@ -1270,7 +1270,7 @@ static NTSTATUS resolve_hosts(const char *name, int name_type,
continue; continue;
} }
memset(&ss, '\0', sizeof(ss)); ZERO_STRUCT(ss);
memcpy(&ss, res->ai_addr, res->ai_addrlen); memcpy(&ss, res->ai_addr, res->ai_addrlen);
*return_count += 1; *return_count += 1;