Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo 2022-06-06 14:42:30 +08:00
parent 0d5dbff489
commit e4b06949dc

View File

@ -237,7 +237,7 @@ namespace MiscServices {
{
IMSA_HILOGI("PerUserSession::ResetIme");
std::unique_lock<std::mutex> lock(mtx);
InputMethodProperty *ime[2] = {defaultIme, securityIme};
InputMethodProperty *ime[] = {defaultIme, securityIme};
for (int i = 0; i < MIN_IME; i++) {
if (currentIme[i] == ime[i] && ime[i]) {
continue;