From: Florian Forster Date: Mon, 4 May 2009 15:08:22 +0000 (+0200) Subject: rrdtool plugin: Make absolutely sure two local variables are initialized. X-Git-Tag: collectd-4.5.4~10 X-Git-Url: https://git.tokkee.org/?p=collectd.git;a=commitdiff_plain;h=30220fc97cad1717a2a3ce3ad03286ef1e6e29f3 rrdtool plugin: Make absolutely sure two local variables are initialized. To make the compiler happy. --- diff --git a/src/rrdtool.c b/src/rrdtool.c index 27e64c11..986c8b41 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -624,6 +624,9 @@ static void *rrd_queue_thread (void *data) int status; int i; + values = NULL; + values_num = 0; + pthread_mutex_lock (&queue_lock); /* Wait for values to arrive */ while (true)