summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-07 17:59:51 +0100
committerVolker Lendecke <vl@samba.org>2010-02-13 13:25:17 +0100
commit95ca53f3e05ac31b05df64412ed1644fa03f99cb (patch)
tree2704630ae364601e60ec89e9a2240ab62ceb344d /lib
parent1a995ab51e1ce236d713e20e264b8c65146b8ec4 (diff)
downloadsamba-95ca53f3e05ac31b05df64412ed1644fa03f99cb.tar.gz
samba-95ca53f3e05ac31b05df64412ed1644fa03f99cb.tar.bz2
samba-95ca53f3e05ac31b05df64412ed1644fa03f99cb.zip
Use ZERO_STRUCTP
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/util_net.c b/lib/util/util_net.c
index b537e59316..723c0002e4 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;
}