aboutsummaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@sonymobile.com>2013-08-30 16:59:06 -0700
committerBjorn Andersson <bjorn.andersson@sonymobile.com>2013-09-30 13:57:49 -0700
commit80a7a4642be31db7ecd5eaa9e62b78deaa461146 (patch)
tree6963f23be4300dd6af9564a4acfadfb8b2db216b /screen_ui.cpp
parent58c60900ac3682fab08f64373bdd1020713b48f7 (diff)
downloadbootable_recovery-80a7a4642be31db7ecd5eaa9e62b78deaa461146.tar.gz
bootable_recovery-80a7a4642be31db7ecd5eaa9e62b78deaa461146.tar.bz2
bootable_recovery-80a7a4642be31db7ecd5eaa9e62b78deaa461146.zip
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
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}