Commit 6b9c6618 authored by antirez's avatar antirez
Browse files

Cluster: make valgrind happy initializing all the bytes of the node IP.

parent 7371d5e2
...@@ -333,7 +333,7 @@ clusterNode *createClusterNode(char *nodename, int flags) { ...@@ -333,7 +333,7 @@ clusterNode *createClusterNode(char *nodename, int flags) {
node->configdigest = NULL; node->configdigest = NULL;
node->configdigest_ts = 0; node->configdigest_ts = 0;
node->link = NULL; node->link = NULL;
node->ip[0] = '\0'; memset(node->ip,0,sizeof(node->ip));
node->port = 0; node->port = 0;
return node; return node;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment