mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Fixed a non critical bug signaled by clang static analyzer thanks to Mukund Sivaraman for reporting it: there was a not initialized field populating the cluster message header, but it is always fixed at later time before sending the packet.
This commit is contained in:
parent
ecc5702145
commit
6710ff24d0
@ -804,7 +804,7 @@ void clusterBroadcastMessage(void *buf, size_t len) {
|
||||
|
||||
/* Build the message header */
|
||||
void clusterBuildMessageHdr(clusterMsg *hdr, int type) {
|
||||
int totlen;
|
||||
int totlen = 0;
|
||||
|
||||
memset(hdr,0,sizeof(*hdr));
|
||||
hdr->type = htons(type);
|
||||
|
Loading…
Reference in New Issue
Block a user