diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-29 17:20:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-04-14 13:13:46 +0200 |
commit | 394150d2692ff1249d0945f719202fdf287ff42e (patch) | |
tree | 2f1a1eb1494575f932dd92efcc25e67f2289c225 /source3 | |
parent | 313abd3ac22005800e625a9931e9c403d60b8c79 (diff) | |
download | samba-394150d2692ff1249d0945f719202fdf287ff42e.tar.gz samba-394150d2692ff1249d0945f719202fdf287ff42e.tar.bz2 samba-394150d2692ff1249d0945f719202fdf287ff42e.zip |
Make use of ZERO_STRUCT instead of memset in namequery.c
(This used to be commit 4f1d49615e1407b9c3ad5eeb50a248b8fee50e23)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/namequery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c index 0191bf7618..893c9265fd 100644 --- a/source3/libsmb/namequery.c +++ b/source3/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; |