From: Florian Forster Date: Sun, 3 Feb 2013 22:04:17 +0000 (+0100) Subject: src/plugin.c: Initialize "next_read" field of read callbacks. X-Git-Tag: collectd-5.1.3~12 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26b7959e12217415fd86507476a736e8b4562a99;p=collectd.git src/plugin.c: Initialize "next_read" field of read callbacks. Fixes Github issue #230. --- diff --git a/src/plugin.c b/src/plugin.c index cdd56bd7..d8958915 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -714,6 +714,9 @@ static int plugin_insert_read (read_func_t *rf) int status; llentry_t *le; + cdtime_t now = cdtime (); + CDTIME_T_TO_TIMESPEC (now, &rf->rf_next_read); + pthread_mutex_lock (&read_lock); if (read_list == NULL)