X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fredis.c;h=7f57571ed9f1f5f0c60d13531c39d10a4f76a6ff;hb=d54dc98aff7fe748d83fc91b0fed685db990e3de;hp=5214eccc1e6efc39db7ae37579c6b7d6a5db897f;hpb=5236399c4c5483b1a9c21233e34b2b4357800d58;p=collectd.git diff --git a/src/redis.c b/src/redis.c index 5214eccc..7f57571e 100644 --- a/src/redis.c +++ b/src/redis.c @@ -252,12 +252,9 @@ static void redis_submit (char *plugin_instance, const char *type, const char *type_instance, value_t value) /* {{{ */ { - value_t values[1]; value_list_t vl = VALUE_LIST_INIT; - values[0] = value; - - vl.values = values; + vl.values = &value; vl.values_len = 1; sstrncpy (vl.host, hostname_g, sizeof (vl.host)); sstrncpy (vl.plugin, "redis", sizeof (vl.plugin));