2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>

* normal/main.c (grub_normal_menu_addentry): Fixed menu size
        calculation.
        (read_config_file): Made it to close file before returning.
This commit is contained in:
chaac 2006-04-01 14:41:34 +00:00
parent b4b9367408
commit 65f201ad2a
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
* normal/main.c (grub_normal_menu_addentry): Fixed menu size
calculation.
(read_config_file): Made it to close file before returning.
2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
* DISTLIST: Added include/grub/i386/pc/vbeblit.h,

View file

@ -153,6 +153,8 @@ grub_normal_menu_addentry (const char *title, struct grub_script *script,
(*last)->next = 0;
(*last)->sourcecode = sourcecode;
current_menu->size++;
return GRUB_ERR_NONE;
}
@ -223,10 +225,8 @@ read_config_file (const char *config)
grub_script_free (parsed_script);
}
return newmenu;
grub_file_close (file);
return 0;
return newmenu;
}
/* This starts the normal mode. */