diff --git a/src/core/thread/mlr_manager.cpp b/src/core/thread/mlr_manager.cpp index 4fd5355f4..db7bc938f 100644 --- a/src/core/thread/mlr_manager.cpp +++ b/src/core/thread/mlr_manager.cpp @@ -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 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);