* grub-core/normal/context.c (grub_env_extractor_close): Don't crash
if no submenu is present.
This commit is contained in:
parent
fc9b5652f6
commit
3008675bea
2 changed files with 6 additions and 1 deletions
|
@ -159,7 +159,7 @@ grub_env_extractor_close (int source)
|
|||
}
|
||||
err = grub_env_context_close ();
|
||||
|
||||
if (source)
|
||||
if (source && menu)
|
||||
{
|
||||
grub_menu_t menu2;
|
||||
menu2 = grub_env_get_menu ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue