summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0bd857d)
raw | patch | inline | side by side (parent: 0bd857d)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:39:57 +0000 (18:39 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 1 Apr 2016 16:39:57 +0000 (18:39 +0200) |
src/write_redis.c | patch | blob | history |
diff --git a/src/write_redis.c b/src/write_redis.c
index 4bfcc73d2b5b92fa61bd37e8855a6b2d2657aad9..a79eb36bc517c479643ac0ebd3312b978f9d072d 100644 (file)
--- a/src/write_redis.c
+++ b/src/write_redis.c
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;