treewide: replace memset to 0 with initializers
[collectd.git] / src / hddtemp.c
index 3de18fd..c32aa35 100644 (file)
@@ -88,12 +88,10 @@ static int hddtemp_query_daemon (char *buffer, int buffer_size)
        const char *host;
        const char *port;
 
-       struct addrinfo  ai_hints;
+       struct addrinfo  ai_hints = { 0 };
        struct addrinfo *ai_list, *ai_ptr;
        int              ai_return;
 
-       memset (&ai_hints, '\0', sizeof (ai_hints));
-       ai_hints.ai_flags    = 0;
 #ifdef AI_ADDRCONFIG
        ai_hints.ai_flags   |= AI_ADDRCONFIG;
 #endif