From: Marc Fournier Date: Tue, 10 Jan 2017 20:22:08 +0000 (+0100) Subject: src/daemon/plugin.c: explicitly declare vl.interval X-Git-Tag: collectd-5.7.1~1^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=30ec92514946bd0b94e09b0cc6d065c6dda878d4;p=collectd.git 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 ! --- 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));