From 6cade15a8c7847e5f3e314a1f001c6f1576ceea5 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 19 Aug 2012 21:43:42 +0200 Subject: [PATCH] postgresql plugin: Fixed a possibly uninitialized variable warning. This was identified by 'gcc -O2'. --- src/postgresql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0