use ZERO_STRUCT
authorVolker Lendecke <vl@samba.org>
Sun, 7 Feb 2010 16:57:56 +0000 (17:57 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 13 Feb 2010 12:25:32 +0000 (13:25 +0100)
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;