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:
Tomoki Nakagawa
2025-02-21 01:52:19 +00:00
committed by Hiroyuki Komatsu
parent 6f0fbad9ac
commit 039172127a

View File

@ -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.