projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
354931f
)
rrdtool plugin: Make absolutely sure two local variables are initialized.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Mon, 4 May 2009 15:08:22 +0000
(17:08 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/src/rrdtool.c
b/src/rrdtool.c
index
27e64c1
..
986c8b4
100644
(file)
--- 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)