Bug 1453795 - WebRTC - Initialize member fields in classes/ structures. r=rjesup

--HG--
extra : amend_source : f4d5cf1f53793ddb457e81fdf9220ce43fbd4ff7
This commit is contained in:
Andi-Bogdan Postelnicu 2018-06-15 18:55:03 +03:00
parent 7b56b88b06
commit d9e98a1219
2 changed files with 12 additions and 1 deletions

View File

@ -307,6 +307,11 @@ DataChannelConnection::DataChannelConnection(DataConnectionListener *listener,
nsIEventTarget *aTarget)
: NeckoTargetHolder(aTarget)
, mLock("netwerk::sctp::DataChannelConnection")
, mSendInterleaved(false)
, mPpidFragmentation(false)
, mMaxMessageSizeSet(false)
, mMaxMessageSize(0)
, mAllocateEven(false)
{
mCurrentStream = 0;
mState = CLOSED;

View File

@ -67,7 +67,12 @@ public:
const uint8_t *GetData() { return (const uint8_t *)(mData + mPos); };
protected:
OutgoingMsg() = default;; // Use this for inheritance only
OutgoingMsg() // Use this for inheritance only
: mLength(0)
, mData(nullptr)
, mInfo(nullptr)
, mPos(0)
{};
size_t mLength;
const uint8_t *mData;
struct sctp_sendv_spa *mInfo;
@ -382,6 +387,7 @@ public:
, mPrPolicy(policy)
, mPrValue(value)
, mFlags(flags)
, mId(0)
, mIsRecvBinary(false)
, mBufferedThreshold(0) // default from spec
, mMainThreadEventTarget(connection->GetNeckoTarget())