diff --git a/ui.cpp b/ui.cpp index 5043ee52..a7c8bea4 100644 --- a/ui.cpp +++ b/ui.cpp @@ -55,6 +55,7 @@ RecoveryUI::RecoveryUI() : pthread_mutex_init(&key_queue_mutex, NULL); pthread_cond_init(&key_queue_cond, NULL); self = this; + memset(key_pressed, 0, sizeof(key_pressed)); } void RecoveryUI::Init() {