From 30ec92514946bd0b94e09b0cc6d065c6dda878d4 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 10 Jan 2017 21:22:08 +0100 Subject: [PATCH] src/daemon/plugin.c: explicitly declare vl.interval This properly gets rid of the warning reported in #2108 Thanks to @charliesignalfx for suggesting this and reporting the issue ! --- src/daemon/plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c index 302c777c..0f067374 100644 --- a/src/daemon/plugin.c +++ b/src/daemon/plugin.c @@ -159,6 +159,7 @@ static int plugin_update_internal_statistics(void) { /* {{{ */ /* Initialize `vl' */ value_list_t vl = VALUE_LIST_INIT; sstrncpy(vl.plugin, "collectd", sizeof(vl.plugin)); + vl.interval = plugin_get_interval(); /* Write queue */ sstrncpy(vl.plugin_instance, "write_queue", sizeof(vl.plugin_instance)); -- 2.11.0