From c686014c1bdb8eda308b83ee61b5f5ba747b13cf Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 4 May 2013 13:43:07 +0200 Subject: [PATCH] * grub-core/normal/menu.c (run_menu): Fix timeout reference point. --- ChangeLog | 4 ++++ grub-core/normal/menu.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e0576e57b..6b0576d93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-05-04 Vladimir Serbinenko + + * grub-core/normal/menu.c (run_menu): Fix timeout reference point. + 2013-05-04 Vladimir Serbinenko * grub-core/gettext/gettext.c: Try $lang.gmo as well. diff --git a/grub-core/normal/menu.c b/grub-core/normal/menu.c index 787b28775..fba19db99 100644 --- a/grub-core/normal/menu.c +++ b/grub-core/normal/menu.c @@ -519,12 +519,12 @@ run_menu (grub_menu_t menu, int nested, int *auto_boot) current_entry = default_entry; - /* Initialize the time. */ - saved_time = grub_get_time_ms (); - refresh: menu_init (current_entry, menu, nested); + /* Initialize the time. */ + saved_time = grub_get_time_ms (); + timeout = grub_menu_get_timeout (); if (timeout > 0)