Commit 6710ff24 authored by antirez's avatar antirez
Browse files

Fixed a non critical bug signaled by clang static analyzer thanks to Mukund...

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.
parent ecc57021
...@@ -804,7 +804,7 @@ void clusterBroadcastMessage(void *buf, size_t len) { ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment