From: Sebastian Harl Date: Sun, 19 Aug 2012 19:43:42 +0000 (+0200) Subject: postgresql plugin: Fixed a possibly uninitialized variable warning. X-Git-Tag: collectd-5.2.0~13^2~18 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6cade15a8c7847e5f3e314a1f001c6f1576ceea5;p=collectd.git postgresql plugin: Fixed a possibly uninitialized variable warning. This was identified by 'gcc -O2'. --- diff --git a/src/postgresql.c b/src/postgresql.c index 34ce527e..9d6c86bc 100644 --- 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)