summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-07 17:57:56 +0100
committerVolker Lendecke <vl@samba.org>2010-02-13 13:25:32 +0100
commite3713176860dce07255c8ee773eaa4715323c9e7 (patch)
tree9158d150a4335aca3dd387016791c8b9d5eadb10
parent95ca53f3e05ac31b05df64412ed1644fa03f99cb (diff)
downloadsamba-e3713176860dce07255c8ee773eaa4715323c9e7.tar.gz
samba-e3713176860dce07255c8ee773eaa4715323c9e7.tar.bz2
samba-e3713176860dce07255c8ee773eaa4715323c9e7.zip
use ZERO_STRUCT
-rw-r--r--lib/util/util_net.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util_net.c b/lib/util/util_net.c
index 723c0002e4..9e47f51764 100644
--- a/lib/util/util_net.c
+++ b/lib/util/util_net.c
@@ -49,7 +49,8 @@ bool interpret_string_addr_internal(struct addrinfo **ppres,
int ret;
struct addrinfo hints;
- memset(&hints, '\0', sizeof(hints));
+ ZERO_STRUCT(hints);
+
/* By default make sure it supports TCP. */
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = flags;