Skip to content

Commit

Permalink
recovery: Initialize menu_show_start_ to avoid crash
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nadlabak authored and Steve Kondik committed Sep 4, 2016
1 parent 966d093 commit 99ace49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions screen_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
intro_frames(0),
Expand Down

0 comments on commit 99ace49

Please sign in to comment.