mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Initialize variables in constructor
This commit is contained in:
parent
e7e6197028
commit
5cd4b094a4
@ -22,6 +22,9 @@ CryptState::CryptState() {
|
||||
for (int i=0;i<0x100;i++)
|
||||
decrypt_history[i] = 0;
|
||||
bInit = false;
|
||||
memset(raw_key, 0, AES_KEY_SIZE_BYTES);
|
||||
memset(encrypt_iv, 0, AES_BLOCK_SIZE);
|
||||
memset(decrypt_iv, 0, AES_BLOCK_SIZE);
|
||||
uiGood=uiLate=uiLost=uiResync=0;
|
||||
uiRemoteGood=uiRemoteLate=uiRemoteLost=uiRemoteResync=0;
|
||||
}
|
||||
|
||||
@ -70,6 +70,7 @@ Global::Global() {
|
||||
db = 0;
|
||||
p = 0;
|
||||
nam = 0;
|
||||
c = 0;
|
||||
uiSession = 0;
|
||||
uiDoublePush = 1000000;
|
||||
iPushToTalk = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user