Fix uninitialized members. (#1465)

This commit is contained in:
Jonathan Hui
2017-03-17 11:10:01 -07:00
committed by GitHub
parent 4643ee8161
commit f802ebfc95
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -63,7 +63,12 @@ MeshForwarder::MeshForwarder(ThreadNetif &aThreadNetif):
mMessageNextOffset(0),
mPollPeriod(0),
mAssignPollPeriod(0),
mSendMessageFrameCounter(0),
mSendMessage(NULL),
mSendMessageIsARetransmission(false),
mSendMessageMaxMacTxAttempts(Mac::kDirectFrameMacTxAttempts),
mSendMessageKeyId(0),
mSendMessageDataSequenceNumber(0),
mMeshSource(Mac::kShortAddrInvalid),
mMeshDest(Mac::kShortAddrInvalid),
mAddMeshHeader(false),
+1
View File
@@ -81,6 +81,7 @@ Mle::Mle(ThreadNetif &aThreadNetif) :
mParentLinkQuality3(0),
mParentLinkQuality2(0),
mParentLinkQuality1(0),
mChildUpdateAttempts(0),
mParentIsSingleton(false),
mSocket(aThreadNetif.GetIp6().mUdp),
mTimeout(kMleEndDeviceTimeout),