summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-29 17:20:15 +0100
committerVolker Lendecke <vl@samba.org>2008-04-14 13:13:46 +0200
commit394150d2692ff1249d0945f719202fdf287ff42e (patch)
tree2f1a1eb1494575f932dd92efcc25e67f2289c225 /source3/libsmb
parent313abd3ac22005800e625a9931e9c403d60b8c79 (diff)
downloadsamba-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/libsmb')
-rw-r--r--source3/libsmb/namequery.c2
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;