From 80a7a4642be31db7ecd5eaa9e62b78deaa461146 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Fri, 30 Aug 2013 16:59:06 -0700 Subject: screen_ui: Initialize text buffer Zero initialize the text buffer to make recovery not render garbage when showing the menu or messages. Change-Id: I0dd0d357757f6b0fd52ad3b3617d42bb1b835245 --- screen_ui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'screen_ui.cpp') diff --git a/screen_ui.cpp b/screen_ui.cpp index 93e2609..b53ab11 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -86,6 +86,8 @@ ScreenRecoveryUI::ScreenRecoveryUI() : for (int i = 0; i < 5; i++) backgroundIcon[i] = NULL; + memset(text, 0, sizeof(text)); + pthread_mutex_init(&updateMutex, NULL); self = this; } -- cgit v1.1