projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
src/daemon/plugin.h: Change "values_len" to type "size_t".
[collectd.git]
/
src
/
write_riemann_threshold.c
diff --git
a/src/write_riemann_threshold.c
b/src/write_riemann_threshold.c
index
6d5af03
..
515480e
100644
(file)
--- a/
src/write_riemann_threshold.c
+++ b/
src/write_riemann_threshold.c
@@
-202,7
+202,9
@@
int write_riemann_threshold_check (const data_set_t *ds, const value_list_t *vl,
gauge_t *values;
int status;
+ assert (vl->values_len > 0);
memset(statuses, 0, vl->values_len * sizeof(*statuses));
+
if (threshold_tree == NULL)
return 0;