aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authoreugene <elzeigel@gmail.com>2021-05-11 11:21:29 -0400
committereugene <elzeigel@gmail.com>2021-05-11 11:21:29 -0400
commit9c891b64ffd14bc8216dbd5eb60816043af265b6 (patch)
treebeefec68583cc30cc5586d5e19eb3d5b913ac830 /src/protocol.cpp
parentf8176b768a1c1500ae64815960948eda415e9997 (diff)
net: initialize nMessageSize to max uint32_t instead of -1
nMessageSize is uint32_t and is set to -1. This will warn with -fsanitize=implicit-integer-sign-change.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 0b893b9272..2f77ec18e6 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -91,7 +91,6 @@ CMessageHeader::CMessageHeader()
{
memset(pchMessageStart, 0, MESSAGE_START_SIZE);
memset(pchCommand, 0, sizeof(pchCommand));
- nMessageSize = -1;
memset(pchChecksum, 0, CHECKSUM_SIZE);
}