From 6b9c6618384ef9fe8ea8054ec82c094ba1f69369 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 15 Feb 2013 12:58:35 +0100 Subject: [PATCH] Cluster: make valgrind happy initializing all the bytes of the node IP. --- src/cluster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster.c b/src/cluster.c index 27347d0d..3a179aa6 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -333,7 +333,7 @@ clusterNode *createClusterNode(char *nodename, int flags) { node->configdigest = NULL; node->configdigest_ts = 0; node->link = NULL; - node->ip[0] = '\0'; + memset(node->ip,0,sizeof(node->ip)); node->port = 0; return node; }