]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/menu.c (run_menu): Fix timeout reference point.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 4 May 2013 11:43:07 +0000 (13:43 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 4 May 2013 11:43:07 +0000 (13:43 +0200)
ChangeLog
grub-core/normal/menu.c

index e0576e57b0b5445a5b8497ed13ed1e899368f2b7..6b0576d93ea394f6d790803cac48723b5de67ffb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
+
 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/gettext/gettext.c: Try $lang.gmo as well.
index 787b2877549a360f632f37b735a1ec27903d6fee..fba19db992152847eb3c91b87e4952e0f0fe7847 100644 (file)
@@ -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)