Skip to content

Commit

Permalink
clear temp_num when restart menu
Browse files Browse the repository at this point in the history
  • Loading branch information
chenall committed Apr 8, 2015
1 parent 843ee61 commit 9e88be1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stage2/stage2.c
Expand Up @@ -556,6 +556,8 @@ run_menu (char *menu_entries, char *config_entries, /*int num_entries,*/ char *h
pass_config = wee_skip_to(password_buf,SKIP_WITH_TERMINATE);

restart1:
//clear temp_num when restart menu
temp_num = 0;
/* Dumb terminal always use all entries for display
invariant for TERM_DUMB: first_entry == 0 */
if (! (current_term->flags & TERM_DUMB))
Expand Down

0 comments on commit 9e88be1

Please sign in to comment.