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
/
liboconfig
/
oconfig.c
diff --git
a/src/liboconfig/oconfig.c
b/src/liboconfig/oconfig.c
index
89ccdec
..
48f0b25
100644
(file)
--- a/
src/liboconfig/oconfig.c
+++ b/
src/liboconfig/oconfig.c
@@
-106,7
+106,7
@@
oconfig_item_t *oconfig_clone (const oconfig_item_t *ci_orig)
{
oconfig_item_t *ci_copy;
- ci_copy =
(oconfig_item_t *)
malloc (sizeof (*ci_copy));
+ ci_copy = malloc (sizeof (*ci_copy));
if (ci_copy == NULL)
{
fprintf (stderr, "malloc failed.\n");