summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e41add1)
raw | patch | inline | side by side (parent: e41add1)
author | Florian Forster <octo@collectd.org> | |
Mon, 29 Jun 2015 10:52:03 +0000 (12:52 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 29 Jun 2015 10:52:03 +0000 (12:52 +0200) |
Hopefully fixes "Uninitialized argument value" warning.
src/write_riemann.c | patch | blob | history |
diff --git a/src/write_riemann.c b/src/write_riemann.c
index a67f94cc62732972421a4d85196cdce012916bc3..26fa3f45680358ee156f8576b6adfaf30be620a9 100644 (file)
--- a/src/write_riemann.c
+++ b/src/write_riemann.c
msg__init (msg);
/* Set up events. First, the list of pointers. */
- msg->n_events = (size_t) vl->values_len;
+ msg->n_events = vl->values_len;
msg->events = calloc (msg->n_events, sizeof (*msg->events));
if (msg->events == NULL)
{
status = write_riemann_threshold_check(ds, vl, statuses);
if (status != 0)
return status;
+ } else {
+ memset (statuses, 0, sizeof (statuses));
}
if (host->use_tcp == 1 && host->batch_mode) {