X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Frouteros.c;h=667c2fa581722e00ef01161e385d6e13d0c4e36a;hb=4de248994479ec6b32a0beb39a7bf9aca1a18387;hp=400ee42b64fcd294106f8681dfee3d3d9e77a0d1;hpb=3b227016c5e2126d5064c19d29ab79f13a187b39;p=collectd.git diff --git a/src/routeros.c b/src/routeros.c index 400ee42b..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;