X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpinba.c;h=833fa1b8cdd4cc997363af376652748fe2dc49d1;hb=69b8a9a1af204685dfdfaf1279a0f2928e0bbb32;hp=cfc07774f5560e0fd12516e7642412e52d2fe9cc;hpb=c89182b424bb4184bd7da3f2ab687b542ed7eea3;p=collectd.git diff --git a/src/pinba.c b/src/pinba.c index cfc07774..833fa1b8 100644 --- a/src/pinba.c +++ b/src/pinba.c @@ -352,10 +352,9 @@ static pinba_socket_t *pinba_socket_open (const char *node, /* {{{ */ pinba_socket_t *s; struct addrinfo *ai_list; struct addrinfo *ai_ptr; - struct addrinfo ai_hints; + struct addrinfo ai_hints = { 0 }; int status; - memset (&ai_hints, 0, sizeof (ai_hints)); ai_hints.ai_flags = AI_PASSIVE; ai_hints.ai_family = AF_UNSPEC; ai_hints.ai_socktype = SOCK_DGRAM;