projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/daemon/collectd.c: Fix implementation of the -B option.
[collectd.git]
/
src
/
tail_csv.c
diff --git
a/src/tail_csv.c
b/src/tail_csv.c
index
d512a52
..
a9ce5d1
100644
(file)
--- a/
src/tail_csv.c
+++ b/
src/tail_csv.c
@@
-475,7
+475,7
@@
static int tcsv_config_add_file(oconfig_item_t *ci) {
return -1;
}
return -1;
}
- s
s
nprintf(cb_name, sizeof(cb_name), "tail_csv/%s", id->path);
+ snprintf(cb_name, sizeof(cb_name), "tail_csv/%s", id->path);
status = plugin_register_complex_read(
NULL, cb_name, tcsv_read, id->interval,
status = plugin_register_complex_read(
NULL, cb_name, tcsv_read, id->interval,
@@
-484,7
+484,6
@@
static int tcsv_config_add_file(oconfig_item_t *ci) {
});
if (status != 0) {
ERROR("tail_csv plugin: Registering complex read function failed.");
});
if (status != 0) {
ERROR("tail_csv plugin: Registering complex read function failed.");
- tcsv_instance_definition_destroy(id);
return -1;
}
return -1;
}