projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
network plugin: fd_num is unsigned
[collectd.git]
/
src
/
write_redis.c
diff --git
a/src/write_redis.c
b/src/write_redis.c
index
4bfcc73
..
a79eb36
100644
(file)
--- a/
src/write_redis.c
+++ b/
src/write_redis.c
@@
-171,10
+171,9
@@
static int wr_config_node (oconfig_item_t *ci) /* {{{ */
int status;
int i;
- node =
malloc (
sizeof (*node));
+ node =
calloc (1,
sizeof (*node));
if (node == NULL)
return (ENOMEM);
- memset (node, 0, sizeof (*node));
node->host = NULL;
node->port = 0;
node->timeout.tv_sec = 0;