提交 6b9c6618 编写于 作者: A antirez

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

上级 7371d5e2
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册