projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0d76f0
)
postgresql plugin: Fixed a possibly uninitialized variable warning.
author
Sebastian Harl
<sh@tokkee.org>
Sun, 19 Aug 2012 19:43:42 +0000
(21:43 +0200)
committer
Sebastian Harl
<sh@tokkee.org>
Sun, 19 Aug 2012 19:43:42 +0000
(21:43 +0200)
This was identified by 'gcc -O2'.
src/postgresql.c
patch
|
blob
|
history
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
34ce527
..
9d6c86b
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-659,7
+659,7
@@
static char *values_to_sqlarray (const data_set_t *ds, const value_list_t *vl,
str_len = string_len;
for (i = 0; i < vl->values_len; ++i) {
- int status;
+ int status
= 0
;
if ((ds->ds[i].type != DS_TYPE_GAUGE)
&& (ds->ds[i].type != DS_TYPE_COUNTER)