diff options
-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; |