use ZERO_STRUCT
[abartlet/samba.git/.git] / lib / util / util_net.c
index 723c0002e4f583ecb8f670d9ee57f732ace1820c..9e47f51764be39b1d9839c2da4f21bd762e9309c 100644 (file)
@@ -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;