projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e795a5
)
daemon/types_list.c: fix minor style issue
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 17:23:55 +0000
(18:23 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000
(19:40 +0100)
src/daemon/types_list.c
patch
|
blob
|
history
diff --git
a/src/daemon/types_list.c
b/src/daemon/types_list.c
index
1ccf10b
..
c3f590c
100644
(file)
--- a/
src/daemon/types_list.c
+++ b/
src/daemon/types_list.c
@@
-113,7
+113,7
@@
static void parse_line(char *buf) {
sstrncpy(ds->type, fields[0], sizeof(ds->type));
ds->ds_num = fields_num - 1;
- ds->ds =
(data_source_t *)calloc(ds->ds_num, sizeof(data_source_t
));
+ ds->ds =
calloc(ds->ds_num, sizeof(*ds->ds
));
if (ds->ds == NULL) {
sfree(ds);
return;