Skip to content

Commit

Permalink
[core] Fixed uninitialized variable usage.
Browse files Browse the repository at this point in the history
Introduced in PR #849
  • Loading branch information
maxsharabayko authored Sep 6, 2019
1 parent 42230db commit dfba340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1596,7 +1596,7 @@ int CRcvBuffer::readMsg(char* data, int len, ref_t<SRT_MSGCTRL> r_msgctl)
if (pktlen > 0)
countBytes(-1, -pktlen, true);

const int unitsize = ((rs >= 0) && (unitsize > rs)) ? rs : pktlen;
const int unitsize = ((rs >= 0) && (pktlen > rs)) ? rs : pktlen;

if (unitsize > 0)
{
Expand Down

0 comments on commit dfba340

Please sign in to comment.