rrdtool plugin: Make absolutely sure two local variables are initialized.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 4 May 2009 15:08:22 +0000 (17:08 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 4 May 2009 15:08:22 +0000 (17:08 +0200)
To make the compiler happy.

src/rrdtool.c

index 27e64c1..986c8b4 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)