uuid plugin: make it work on OSX
[collectd.git] / src / write_tsdb.c
index fe418cf..78166b1 100644 (file)
@@ -42,6 +42,7 @@
  */
 
 #include "collectd.h"
+
 #include "common.h"
 #include "plugin.h"
 #include "configfile.h"
@@ -165,8 +166,6 @@ static int wt_callback_init(struct wt_callback *cb)
     if (cb->sock_fd > 0)
         return 0;
 
-    ai_list = NULL;
-
     struct addrinfo ai_hints = {
         .ai_family = AF_UNSPEC,
         .ai_flags = AI_ADDRCONFIG,