{"comment":{"url":"https://api.github.com/repos/antirez/redis/comments/9260499","html_url":"https://github.com/antirez/redis/commit/237ab727b9b3ae025ef589bb5455443033f79bda#commitcomment-9260499","id":9260499,"user":{"login":"mattsta","id":15594,"avatar_url":"https://avatars.githubusercontent.com/u/15594?v=3","gravatar_id":"","url":"https://api.github.com/users/mattsta","html_url":"https://github.com/mattsta","followers_url":"https://api.github.com/users/mattsta/followers","following_url":"https://api.github.com/users/mattsta/following{/other_user}","gists_url":"https://api.github.com/users/mattsta/gists{/gist_id}","starred_url":"https://api.github.com/users/mattsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattsta/subscriptions","organizations_url":"https://api.github.com/users/mattsta/orgs","repos_url":"https://api.github.com/users/mattsta/repos","events_url":"https://api.github.com/users/mattsta/events{/privacy}","received_events_url":"https://api.github.com/users/mattsta/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"237ab727b9b3ae025ef589bb5455443033f79bda","created_at":"2015-01-13T14:22:06Z","updated_at":"2015-01-13T14:22:06Z","body":"Could also just be:\r\n\r\n```diff\r\ndiff --git a/src/cluster.c b/src/cluster.c\r\nindex 79359ee..f7b280b 100644\r\n--- a/src/cluster.c\r\n+++ b/src/cluster.c\r\n@@ -1093,7 +1093,7 @@ int clusterHandshakeInProgress(char *ip, int port) {\r\n  * EINVAL - IP or port are not valid. */\r\n int clusterStartHandshake(char *ip, int port) {\r\n     clusterNode *n;\r\n-    char norm_ip[REDIS_IP_STR_LEN];\r\n+    char norm_ip[REDIS_IP_STR_LEN] = {0};\r\n     struct sockaddr_storage sa;\r\n \r\n     /* IP sanity check */\r\n```\r\n\r\nlooks cleaner to use compile-time array/struct initializers :)"}}