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

This commit is contained in:
antirez 2013-02-15 12:58:35 +01:00
parent 7371d5e248
commit 6b9c661838

View File

@ -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;
} }