projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
table plugin: Assert that result_num is zero when result is NULL.
[collectd.git]
/
src
/
table.c
diff --git
a/src/table.c
b/src/table.c
index
3e8fead
..
cebcaed
100644
(file)
--- a/
src/table.c
+++ b/
src/table.c
@@
-279,6
+279,7
@@
static int tbl_config_table(oconfig_item_t *ci) {
}
if (NULL == tbl->results) {
+ assert(tbl->results_num == 0);
log_err("Table \"%s\" does not specify any (valid) results.", tbl->file);
status = 1;
}