Skip to content

Commit

Permalink
Fixed uninitialized members
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Jun 26, 2024
1 parent 621d775 commit feacae5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions reunion/src/query_limiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CQueryLimiter::CQueryLimiter()
m_uniqueQueries = 0;
m_useGlobalRateLimit = false;
m_lastAdded = -1;
m_lastFloodLog = 0;
memset(m_lastQueries, 0, sizeof m_lastQueries);

if ((MAX_STORED_QUERIES & (MAX_STORED_QUERIES - 1)) != 0)
Expand Down
2 changes: 2 additions & 0 deletions reunion/src/reunion_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ CReunionPlayer::CReunionPlayer(IGameClient* cl) {
void CReunionPlayer::clear() {
m_IdKind = CI_UNKNOWN;
m_AuthKind = CA_UNKNOWN;
m_authKeyKind = AK_OTHER;
m_idString[0] = 0;
m_Protocol = 0;
m_ConnectionTime = 0.0;
m_UnauthenticatedSteamId = 0;
Expand Down

0 comments on commit feacae5

Please sign in to comment.