X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frouteros.c;h=667c2fa581722e00ef01161e385d6e13d0c4e36a;hb=b333eb9557c96bdd2a336c33d623e428922a1046;hp=4ca9d5b2e77e6b3d059aee2e1d656b0d62cbf292;hpb=79593ed5e0a3def8e91be5b1de15a536af2d4a92;p=collectd.git diff --git a/src/routeros.c b/src/routeros.c index 4ca9d5b2..667c2fa5 100644 --- a/src/routeros.c +++ b/src/routeros.c @@ -331,7 +331,7 @@ static int cr_config_router (oconfig_item_t *ci) /* {{{ */ router_data = malloc (sizeof (*router_data)); if (router_data == NULL) return (-1); - memset (router_data, 0, sizeof (router_data)); + memset (router_data, 0, sizeof (*router_data)); router_data->connection = NULL; router_data->node = NULL; router_data->service = NULL; @@ -414,7 +414,7 @@ static int cr_config_router (oconfig_item_t *ci) /* {{{ */ user_data.free_func = (void *) cr_free_data; if (status == 0) status = plugin_register_complex_read (/* group = */ NULL, read_name, - cr_read, /* interval = */ NULL, &user_data); + cr_read, /* interval = */ 0, &user_data); if (status != 0) cr_free_data (router_data);