mirror of
https://github.com/espressif/openthread.git
synced 2026-09-16 22:20:07 +00:00
[udp6] init member variable from constructor (#3412)
This commit initializes `mUdpForwarder` and `mUdpForwarderContext` from `Udp::Udp` class constructor. Credit to coverity.
This commit is contained in:
committed by
Jonathan Hui
parent
97ace18c17
commit
e5947b5e23
@@ -200,6 +200,10 @@ Udp::Udp(Instance &aInstance)
|
||||
, mEphemeralPort(kDynamicPortMin)
|
||||
, mReceivers(NULL)
|
||||
, mSockets(NULL)
|
||||
#if OPENTHREAD_ENABLE_UDP_FORWARD
|
||||
, mUdpForwarderContext(NULL)
|
||||
, mUdpForwarder(NULL)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user