diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index cc2beb72da..b630a36f02 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -4397,8 +4397,7 @@ static clusterMsgSendBlock *createModuleMsgBlock(int64_t module_id, uint8_t type * * If link is NULL, then the message is broadcasted to the whole cluster. */ void clusterSendModule(clusterLink *link, uint64_t module_id, uint8_t type, const char *payload, uint32_t len) { - clusterMsgSendBlock *msgblock[CLUSTERMSG_HDR_NUM]; - memset(msgblock, 0, sizeof(msgblock)); + clusterMsgSendBlock *msgblock[CLUSTERMSG_HDR_NUM] = {0}; ClusterNodeIterator iter; if (link) {