X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=98ec66621c93460197891d67b838b5ff8fad8803;hb=ce545d5c78ac284081d914afdccc8dd209f41606;hp=19f351abc3dc17329676ea77a193b635bc07d693;hpb=6a69db4d304118e11fd4bae9c761fc14674e4942;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index 19f351ab..98ec6662 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -283,6 +283,9 @@ static void *rrd_queue_thread (void __attribute__((unused)) *data) int status; int i; + values = NULL; + values_num = 0; + pthread_mutex_lock (&queue_lock); /* Wait for values to arrive */ while (true)