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
/
openvpn.c
diff --git
a/src/openvpn.c
b/src/openvpn.c
index
8bccce3
..
ec76a7a
100644
(file)
--- a/
src/openvpn.c
+++ b/
src/openvpn.c
@@
-699,7
+699,7
@@
static int openvpn_config (const char *key, const char *value)
}
/* create a new vpn element since file, version and name are ok */
- temp =
(vpn_status_t *) malloc (sizeof (vpn_status_t
));
+ temp =
malloc (sizeof (*temp
));
if (temp == NULL)
{
char errbuf[1024];