diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-02-07 20:29:08 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-02-07 20:29:08 -0800 |
commit | 71c86ada9f00334b2967d24d4182dc324cd97605 (patch) | |
tree | 0532a91cba28a92038307fc51637b9bf141f1d87 /services/input/tests | |
parent | 5e2b123e483a6da1b7cff36024b12e85a0a7c382 (diff) | |
download | frameworks_base-71c86ada9f00334b2967d24d4182dc324cd97605.zip frameworks_base-71c86ada9f00334b2967d24d4182dc324cd97605.tar.gz frameworks_base-71c86ada9f00334b2967d24d4182dc324cd97605.tar.bz2 |
Fix read from uninitialized memory.
Change-Id: I75ce29d5971b386ff9dd52824a8953ce69a3ec15
Diffstat (limited to 'services/input/tests')
-rw-r--r-- | services/input/tests/InputReader_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/input/tests/InputReader_test.cpp b/services/input/tests/InputReader_test.cpp index 25030d8..8ec1fd4 100644 --- a/services/input/tests/InputReader_test.cpp +++ b/services/input/tests/InputReader_test.cpp @@ -878,7 +878,8 @@ public: InstrumentedInputReader(const sp<EventHubInterface>& eventHub, const sp<InputReaderPolicyInterface>& policy, const sp<InputDispatcherInterface>& dispatcher) : - InputReader(eventHub, policy, dispatcher) { + InputReader(eventHub, policy, dispatcher), + mNextDevice(NULL) { } virtual ~InstrumentedInputReader() { |