mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
grub_menu_init_page: Avoid returning 0 geometry to avoid divisions by 0.
This commit is contained in:
1 parent
68581b009f
commit
44b38e4988
2 files changed
+8
No files matched your search
@@ -369,6 +369,9 @@ grub_menu_init_page (int nested, int edit,
|
||||
geo->border = 0;
|
||||
}
|
||||
|
||||
if (geo->entry_width <= 0)
|
||||
geo->entry_width = 1;
|
||||
|
||||
if (geo->num_entries - msg_num_lines < 3
|
||||
&& geo->timeout_lines == 2)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user