Skip to content

Commit

Permalink
Update cluster_legacy.c
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Söderqvist <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
  • Loading branch information
hpatro and zuiderkwast authored Feb 1, 2025
1 parent 628c1fd commit 7bcf752
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7bcf752

Please sign in to comment.