projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sensors plugin: malloc + memset -> calloc
[collectd.git]
/
src
/
teamspeak2.c
diff --git
a/src/teamspeak2.c
b/src/teamspeak2.c
index
058eb7c
..
345f57e
100644
(file)
--- a/
src/teamspeak2.c
+++ b/
src/teamspeak2.c
@@
-83,7
+83,7
@@
static int tss2_add_vserver (int vserver_port)
}
/* Allocate memory */
- entry =
(vserver_list_t *) malloc (sizeof (vserver_list_t
));
+ entry =
malloc (sizeof (*entry
));
if (entry == NULL)
{
ERROR ("teamspeak2 plugin: malloc failed.");