git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ca53f
)
use ZERO_STRUCT
author
Volker Lendecke
<vl@samba.org>
Sun, 7 Feb 2010 16:57:56 +0000
(17:57 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 13 Feb 2010 12:25:32 +0000
(13:25 +0100)
lib/util/util_net.c
patch
|
blob
|
history
diff --git
a/lib/util/util_net.c
b/lib/util/util_net.c
index 723c0002e4f583ecb8f670d9ee57f732ace1820c..9e47f51764be39b1d9839c2da4f21bd762e9309c 100644
(file)
--- 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;