uuid plugin: also look in /sys/class/dmi for uuid
[collectd.git] / src / network.c
index 11c39a7..3fa66aa 100644 (file)
@@ -26,6 +26,7 @@
 #define _BSD_SOURCE /* For struct ip_mreq */
 
 #include "collectd.h"
+
 #include "plugin.h"
 #include "common.h"
 #include "configfile.h"
@@ -2139,7 +2140,7 @@ static int sockent_client_connect (sockent_t *se) /* {{{ */
        static c_complain_t complaint = C_COMPLAIN_INIT_STATIC;
 
        struct sockent_client *client;
-       struct addrinfo *ai_list = NULL, *ai_ptr;
+       struct addrinfo *ai_list, *ai_ptr;
        int status;
        _Bool reconnect = 0;
        cdtime_t now;