Update cluster_legacy.c

Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Signed-off-by: Harkrishn Patro <bunty.hari@gmail.com>
Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
This commit is contained in:
Harkrishn Patro 2025-01-31 16:15:43 -08:00
parent 4d8b04005e
commit 1583bef2bf

View File

@ -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) {