Skip to content

Commit

Permalink
Small refax and minor warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki committed Jul 12, 2024
1 parent 35ba20c commit e69900b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,14 @@ int srt::CChannel::sendto(const sockaddr_any& addr, CPacket& packet, const CNetw
#if ENABLE_HEAVY_LOGGING
ostringstream dsrc;
#ifdef SRT_ENABLE_PKTINFO
dsrc << " sourceIP=" << (m_bBindMasked && !source_ni.address.isany() ? source_ni.address.str() : "default");
if (m_bBindMasked && !source_ni.address.isany())
{
dsrc << " sourceNI=" << source_ni.str();
}
else
{
dsrc << " sourceNI=default";
}
#endif

LOGC(kslog.Debug,
Expand Down
4 changes: 4 additions & 0 deletions srtcore/queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ struct CMultiplexer
, m_pRcvQueue(NULL)
, m_pChannel(NULL)
, m_pTimer(NULL)
, m_iPort(0)
, m_iIPversion(AF_UNSPEC)
, m_iRefCount(1)
, m_iID(-1)
{
}

Expand Down

0 comments on commit e69900b

Please sign in to comment.