uuid plugin: make it work on FreeBSD
[collectd.git] / src / modbus.c
index a215060..2f685e6 100644 (file)
@@ -21,6 +21,7 @@
  **/
 
 #include "collectd.h"
+
 #include "common.h"
 #include "plugin.h"
 #include "configfile.h"
@@ -823,8 +824,6 @@ static int mb_config_set_host_address (mb_host_t *host, /* {{{ */
   if ((host == NULL) || (address == NULL))
     return (EINVAL);
 
-  ai_list = NULL;
-
   struct addrinfo  ai_hints = {
     /* XXX: libmodbus can only handle IPv4 addresses. */
     .ai_family = AF_INET,