summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3c48e21)
raw | patch | inline | side by side (parent: 3c48e21)
author | Florian Forster <octo@collectd.org> | |
Fri, 11 Jan 2013 10:52:14 +0000 (11:52 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 11 Jan 2013 10:52:14 +0000 (11:52 +0100) |
src/riemann.c | patch | blob | history |
diff --git a/src/riemann.c b/src/riemann.c
index 12f995357be5745099e86b8a8a86b590bfd1b82b..315a52db55d5bf3bc22231d4093366e24bbc6c27 100644 (file)
--- a/src/riemann.c
+++ b/src/riemann.c
@@ -333,7 +333,7 @@ static Event *riemann_value_to_protobuf (struct riemann_host const *host, /* {{{
/* TODO: Use FORMAT_VL() here. */
ssnprintf (service_buffer, sizeof(service_buffer),
"%s-%s-%s-%s-%s", vl->plugin, vl->plugin_instance,
- vl->type, vl->type_instance, ds->ds[i].name);
+ vl->type, vl->type_instance, ds->ds[index].name);
event->service = strdup (service_buffer);
DEBUG ("riemann plugin: Successfully created protobuf for metric: "
{
msg->events[i] = riemann_value_to_protobuf (host, ds, vl,
(int) i, /* rates = */ NULL);
- if (msg->events[i])
+ if (msg->events[i] == NULL)
{
riemann_msg_protobuf_free (msg);
return (NULL);