From: BVK Chaitanya Date: Fri, 3 Sep 2010 15:23:38 +0000 (+0530) Subject: fix hotkey handling X-Git-Tag: 1.99~596^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78780e7005c687d35d9a4a0ba09059520a1ecff6;p=thirdparty%2Fgrub.git fix hotkey handling --- diff --git a/grub-core/commands/menuentry.c b/grub-core/commands/menuentry.c index be4fa3347..b6662bb96 100644 --- a/grub-core/commands/menuentry.c +++ b/grub-core/commands/menuentry.c @@ -107,8 +107,8 @@ append_menu_entry (int argc, const char **args, char **classes, menu_hotkey = hotkey_aliases[i].key; break; } - if (i > ARRAY_SIZE (hotkey_aliases)) - goto fail; + if (i == ARRAY_SIZE (hotkey_aliases)) + menu_hotkey = hotkey[0]; } if (! argc)