Code

rrdtool plugin: Make absolutely sure two local variables are initialized.
[collectd.git] / src / rrdtool.c
index 27e64c11c2bab98bc430b0355d4514e38fc82e14..986c8b41bed0fd5d9ff3f83c96fdd2a34206a939 100644 (file)
@@ -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)