commit | dbbad304d4df8ff08b28d093e1b5fa095041ed49 | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Thu Dec 17 08:56:30 2020 -0800 |
committer | Greg Kaiser <gkaiser@google.com> | Thu Dec 17 08:56:30 2020 -0800 |
tree | a393dcc26d06efbbb53c40457a72bfb5b306ae58 | |
parent | a3f1eddacf9461f84d2d30920ce871ac803c3e50 [diff] [blame] |
CommandEntry: Initialize 'enabled' field We have the other fields of this struct initialized in the constructor, so for consistency, we initialize this one as well. Test: TreeHugger Change-Id: I076033567abc9df1b74651a0c103912a105205d9
diff --git a/services/inputflinger/dispatcher/Entry.cpp b/services/inputflinger/dispatcher/Entry.cpp index d8a6548..7957a57 100644 --- a/services/inputflinger/dispatcher/Entry.cpp +++ b/services/inputflinger/dispatcher/Entry.cpp
@@ -271,7 +271,8 @@ keyEntry(nullptr), userActivityEventType(0), seq(0), - handled(false) {} + handled(false), + enabled(false) {} CommandEntry::~CommandEntry() {}