proto/*.proto: Add the go_package option.
[collectd.git] / src / zookeeper.c
index 89ec6d2..a236c8a 100644 (file)
@@ -105,13 +105,12 @@ static int zookeeper_connect (void)
 {
        int sk = -1;
        int status;
-       struct addrinfo ai_hints;
+       struct addrinfo ai_hints = { 0 };
        struct addrinfo *ai;
        struct addrinfo *ai_list;
        const char *host;
        const char *port;
 
-       memset ((void *) &ai_hints, '\0', sizeof (ai_hints));
        ai_hints.ai_family   = AF_UNSPEC;
        ai_hints.ai_socktype = SOCK_STREAM;