summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authoryetta_wu <yetta_wu@asus.com>2013-06-25 21:56:12 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2013-06-25 21:56:12 +0200
commit4d4b233eae51d5580b58cb00d3aa45ecbb1b255e (patch)
tree0ff0d373e63e3ca5a20945126a0c68e6b3ef8ffc /screen_ui.cpp
parentam d51bfc9b: Merge "Fix the potential segmentation fault" (diff)
parentrecovery: init backgroundIcon properly to avoid recovery mode crash (diff)
downloadandroid_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar.gz
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar.bz2
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar.lz
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar.xz
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.tar.zst
android_bootable_recovery-4d4b233eae51d5580b58cb00d3aa45ecbb1b255e.zip
Diffstat (limited to 'screen_ui.cpp')
-rw-r--r--screen_ui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 222de00ee..93e260936 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -82,6 +82,10 @@ ScreenRecoveryUI::ScreenRecoveryUI() :
install_overlay_offset_y(190),
overlay_offset_x(-1),
overlay_offset_y(-1) {
+
+ for (int i = 0; i < 5; i++)
+ backgroundIcon[i] = NULL;
+
pthread_mutex_init(&updateMutex, NULL);
self = this;
}