projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: cleanup malloc calls
[collectd.git]
/
src
/
match_empty_counter.c
diff --git
a/src/match_empty_counter.c
b/src/match_empty_counter.c
index
e30ff91
..
4a5dc8c
100644
(file)
--- a/
src/match_empty_counter.c
+++ b/
src/match_empty_counter.c
@@
-46,7
+46,7
@@
static int mec_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
{
mec_match_t *m;
- m =
(mec_match_t *)
malloc (sizeof (*m));
+ m = malloc (sizeof (*m));
if (m == NULL)
{
ERROR ("mec_create: malloc failed.");