mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[lint] explicitly initialize failedAddresses (#9622)
Compiling with GCC 13.2.0, got the maybe-uninitialized error. This commit fixes it by initializing the array.
This commit is contained in:
@@ -351,7 +351,7 @@ void MlrManager::HandleRegisterMulticastListenersResponse(otMessage *a
|
||||
|
||||
uint8_t status;
|
||||
Error error;
|
||||
Ip6::Address failedAddresses[Ip6AddressesTlv::kMaxAddresses];
|
||||
Ip6::Address failedAddresses[Ip6AddressesTlv::kMaxAddresses]{};
|
||||
uint8_t failedAddressNum = 0;
|
||||
Callback<otIp6RegisterMulticastListenersCallback> callbackCopy = mRegisterMulticastListenersCallback;
|
||||
|
||||
@@ -447,7 +447,7 @@ void MlrManager::HandleMulticastListenerRegistrationResponse(Coap::Message
|
||||
|
||||
uint8_t status;
|
||||
Error error;
|
||||
Ip6::Address failedAddresses[Ip6AddressesTlv::kMaxAddresses];
|
||||
Ip6::Address failedAddresses[Ip6AddressesTlv::kMaxAddresses]{};
|
||||
uint8_t failedAddressNum = 0;
|
||||
|
||||
error = ParseMulticastListenerRegistrationResponse(aResult, aMessage, status, failedAddresses, failedAddressNum);
|
||||
|
||||
Reference in New Issue
Block a user