grub_menu_init_page: Avoid returning 0 geometry to avoid divisions by 0.

This commit is contained in:
Vladimir Serbinenko committed 2015-01-21 17:42:15 +01:00
1 parent 68581b009f
commit 44b38e4988
2 files changed
+8

No files matched your search

+3
View File
@@ -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)
{