Initialize all member variables in constructors. (#1026)

This commit is contained in:
Jonathan Hui
2016-12-01 08:51:55 -08:00
committed by GitHub
parent 353c3afbdd
commit 9586cfb700
8 changed files with 66 additions and 42 deletions
+2
View File
@@ -46,6 +46,8 @@ Udp::Udp(otInstance *aInstance, Interpreter *aInterpreter):
mInstance(aInstance),
mInterpreter(aInterpreter)
{
memset(&mSocket, 0, sizeof(mSocket));
memset(&mPeer, 0, sizeof(mPeer));
}
ThreadError Udp::Start(void)