Initialize uninitialized variables

This commit is contained in:
Dale Glass 2022-06-15 00:02:39 +02:00
parent 984f11ddf4
commit c3789e3ea1

View file

@ -890,9 +890,9 @@ void DomainServerSettingsManager::processNodeKickRequestPacket(QSharedPointer<Re
bool hasOptionalBanParameters = false;
int banParameters;
bool banByUsername;
bool banByFingerprint;
bool banByIP;
bool banByUsername = false;
bool banByFingerprint = false;
bool banByIP = false;
// pull optional ban parameters from the packet
if (message.data()->getSize() == (NUM_BYTES_RFC4122_UUID + sizeof(int))) {
hasOptionalBanParameters = true;