From 8c053c088f65c367f8ac36f124cf94534946638c Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Tue, 25 Jan 2022 10:57:11 -0800 Subject: [PATCH] Update src/app/clusters/localization-configuration-server/localization-configuration-server.cpp Co-authored-by: Boris Zbarsky --- .../localization-configuration-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/localization-configuration-server/localization-configuration-server.cpp b/src/app/clusters/localization-configuration-server/localization-configuration-server.cpp index 66ab74724603c9..257676cea7d6bc 100644 --- a/src/app/clusters/localization-configuration-server/localization-configuration-server.cpp +++ b/src/app/clusters/localization-configuration-server/localization-configuration-server.cpp @@ -153,8 +153,8 @@ void emberAfLocalizationConfigurationClusterServerInitCallback(EndpointId endpoi DeviceLayer::AttributeList supportedLocales; CharSpan validLocale; - char outBuffer[kMaxActiveLocaleLength] = ""; - MutableCharSpan activeLocale(outBuffer, kMaxActiveLocaleLength); + char outBuffer[kMaxActiveLocaleLength]; + MutableCharSpan activeLocale(outBuffer); EmberAfStatus status = ActiveLocale::Get(endpoint, activeLocale); VerifyOrReturn(EMBER_ZCL_STATUS_SUCCESS == status, ChipLogError(Zcl, "Failed to read ActiveLocale with error: 0x%02x", status));