projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: cleanup whitespace
[collectd.git]
/
src
/
write_riemann_threshold.c
diff --git
a/src/write_riemann_threshold.c
b/src/write_riemann_threshold.c
index
b1f7297
..
8567288
100644
(file)
--- a/
src/write_riemann_threshold.c
+++ b/
src/write_riemann_threshold.c
@@
-134,7
+134,7
@@
static int ut_check_one_threshold (const data_set_t *ds,
int *statuses)
{ /* {{{ */
int ret = -1;
int *statuses)
{ /* {{{ */
int ret = -1;
-
in
t i;
+
size_
t i;
int status;
gauge_t values_copy[ds->ds_num];
int status;
gauge_t values_copy[ds->ds_num];
@@
-203,7
+203,9
@@
int write_riemann_threshold_check (const data_set_t *ds, const value_list_t *vl,
gauge_t *values;
int status;
gauge_t *values;
int status;
+ assert (vl->values_len > 0);
memset(statuses, 0, vl->values_len * sizeof(*statuses));
memset(statuses, 0, vl->values_len * sizeof(*statuses));
+
if (threshold_tree == NULL)
return 0;
if (threshold_tree == NULL)
return 0;