mirror of
https://github.com/mii443/mozc.git
synced 2025-08-22 16:15:46 +00:00
Fix use of uninitialized value.
On the very first call to `InsertCharacterKeyEvent`, the field `timestamp_msec_` is uninitialized. PiperOrigin-RevId: 729317619
This commit is contained in:
committed by
Hiroyuki Komatsu
parent
6f0fbad9ac
commit
039172127a
@ -395,7 +395,7 @@ class Composer final {
|
||||
const Table *table_ = nullptr;
|
||||
|
||||
// Timestamp of last modified.
|
||||
int64_t timestamp_msec_;
|
||||
int64_t timestamp_msec_ = 0;
|
||||
|
||||
// If the duration between key inputs is more than timeout_threadhols_msec_,
|
||||
// the STOP_KEY_TOGGLING event is sent before the next key input.
|
||||
|
Reference in New Issue
Block a user