diff options
author | Volker Lendecke <vl@samba.org> | 2010-02-07 17:57:56 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-02-13 13:25:32 +0100 |
commit | e3713176860dce07255c8ee773eaa4715323c9e7 (patch) | |
tree | 9158d150a4335aca3dd387016791c8b9d5eadb10 | |
parent | 95ca53f3e05ac31b05df64412ed1644fa03f99cb (diff) | |
download | samba-e3713176860dce07255c8ee773eaa4715323c9e7.tar.gz samba-e3713176860dce07255c8ee773eaa4715323c9e7.tar.bz2 samba-e3713176860dce07255c8ee773eaa4715323c9e7.zip |
use ZERO_STRUCT
-rw-r--r-- | lib/util/util_net.c | 3 |
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; |