Skip to content

Commit

Permalink
Merge pull request #2149 from rex4539/var
Browse files Browse the repository at this point in the history
Fix uninitialized variables
  • Loading branch information
orignal authored Jan 16, 2025
2 parents 4bb8211 + 4c5a1e0 commit e4fc278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/Destination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace client
m_IsPublic = itr->second != "true";
}

int inLen, outLen, inQuant, outQuant, numTags, minLatency, maxLatency;
int inLen = 0, outLen = 0, inQuant = 0, outQuant = 0, numTags = 0, minLatency = 0, maxLatency = 0;
std::map<std::string, int&> intOpts = {
{I2CP_PARAM_INBOUND_TUNNEL_LENGTH, inLen},
{I2CP_PARAM_OUTBOUND_TUNNEL_LENGTH, outLen},
Expand Down

0 comments on commit e4fc278

Please sign in to comment.