Skip to content

Commit

Permalink
Fixing erroneous warning of the compiler (#16).
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Sep 19, 2024
1 parent 8ab8e57 commit 6b5afb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gateway/app/gateway/GatewaySession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ void GatewaySession::doBrokerConnect()
auto actSize = bufSize;

if (!m_brokerData.empty()) {
m_brokerData.reserve(m_brokerData.size() + bufSize);
m_brokerData.insert(m_brokerData.end(), buf, buf + bufSize);
actBuf = m_brokerData.data();
actSize = m_brokerData.size();
Expand Down

0 comments on commit 6b5afb5

Please sign in to comment.