aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornadlabak <pavel@doshaska.net>2016-06-20 21:15:59 +0200
committernadlabak <pavel@doshaska.net>2016-06-20 21:15:59 +0200
commit8e507d8e0f11076a40a46235cf5a13fc90bb3bb8 (patch)
tree7966d4187e6a612d1c3a0b28a36afda5a8160fd0
parent85c910ab0b8a2082c46495a4645041eecd41776f (diff)
downloadbootable_recovery-8e507d8e0f11076a40a46235cf5a13fc90bb3bb8.zip
bootable_recovery-8e507d8e0f11076a40a46235cf5a13fc90bb3bb8.tar.gz
bootable_recovery-8e507d8e0f11076a40a46235cf5a13fc90bb3bb8.tar.bz2
recovery: Initialize menu_show_start_ to avoid crash
When left uninitialized, wrong pointer to text may be passed from draw_screen_locked to draw_menu_item, causing segfault in gr_text. Change-Id: I932dd8c4d3d28afe82decc46f1f0af20586d88df
-rw-r--r--screen_ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 46f4add..3c0bbaf 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -77,6 +77,7 @@ ScreenRecoveryUI::ScreenRecoveryUI() :
show_menu(false),
menu_items(0),
menu_sel(0),
+ menu_show_start_(0),
sysbar_state(0),
file_viewer_text_(nullptr),
animation_fps(20),