From 26b7959e12217415fd86507476a736e8b4562a99 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 3 Feb 2013 23:04:17 +0100 Subject: [PATCH] src/plugin.c: Initialize "next_read" field of read callbacks. Fixes Github issue #230. --- src/plugin.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.11.0