mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 14:20:29 +00:00
Initialize all member variables in constructors. (#1026)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user