summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-03-01 17:21:51 -0800
committer Siarhei Vishniakou <svv@google.com> 2023-03-02 01:28:14 +0000
commit1e5ec0a0542e150cff46ba117022d3d8fb9794da (patch)
treefbbfa32009cb8ddbdb9a6a4139885cf09759ea41
parentef19b194c8a1723c63cda9bf5f6d3ac416dc8809 (diff)
Initialize mLayoutOverlayApplied
This variable is left uninitialized. On some platforms, this causes the libinput_tests to fail when sanitizers are enabled. Bug: 251249010 Test: m libinput_tests && adb sync data && adb shell -t /data/nativetest64/libinput_tests/libinput_tests --gtest_filter="*keyCharacterMapParcelingTest*" Change-Id: I05063efdde9a826f7001dca828b84bbec5beb0df
-rw-r--r--include/input/KeyCharacterMap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/input/KeyCharacterMap.h b/include/input/KeyCharacterMap.h
index b5e6f65e48..c67310eaec 100644
--- a/include/input/KeyCharacterMap.h
+++ b/include/input/KeyCharacterMap.h
@@ -235,7 +235,7 @@ private:
KeyedVector<int32_t, Key*> mKeys;
KeyboardType mType;
std::string mLoadFileName;
- bool mLayoutOverlayApplied;
+ bool mLayoutOverlayApplied = false;
std::map<int32_t /* fromAndroidKeyCode */, int32_t /* toAndroidKeyCode */> mKeyRemapping;
std::map<int32_t /* fromScanCode */, int32_t /* toAndroidKeyCode */> mKeysByScanCode;