Code

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 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)