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 */
|
/* Build the message header */
|
||||||
void clusterBuildMessageHdr(clusterMsg *hdr, int type) {
|
void clusterBuildMessageHdr(clusterMsg *hdr, int type) {
|
||||||
int totlen;
|
int totlen = 0;
|
||||||
|
|
||||||
memset(hdr,0,sizeof(*hdr));
|
memset(hdr,0,sizeof(*hdr));
|
||||||
hdr->type = htons(type);
|
hdr->type = htons(type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user