projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openldap plugin: malloc + memset -> calloc
[collectd.git]
/
src
/
tail_csv.c
diff --git
a/src/tail_csv.c
b/src/tail_csv.c
index
bb9b58a
..
15c083e
100644
(file)
--- a/
src/tail_csv.c
+++ b/
src/tail_csv.c
@@
-290,7
+290,7
@@
static int tcsv_config_add_metric(oconfig_item_t *ci){
int status;
int i;
- md =
(metric_definition_t *)
malloc(sizeof(*md));
+ md = malloc(sizeof(*md));
if (md == NULL)
return (-1);
memset(md, 0, sizeof(*md));