X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpinba.c;h=833fa1b8cdd4cc997363af376652748fe2dc49d1;hb=3fae5596643f1e361eb18c3d65448f8bc02fdd80;hp=cfc07774f5560e0fd12516e7642412e52d2fe9cc;hpb=38909dcf1dcb596c5f525c6bb25cf89c046013b5;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;