* grub-core/normal/menu_entry.c (run): Quieten uninitialised

warning.  (This was in fact always initialised before use, but GCC
  wasn't smart enough to prove that.)
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
This commit is contained in:
Colin Watson 2011-04-01 11:43:51 +01:00
parent 91dc607330
commit 05d2ed3277
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2011-04-01 Colin Watson <cjwatson@ubuntu.com>
* grub-core/normal/menu_entry.c (run): Quieten uninitialised
warning. (This was in fact always initialised before use, but GCC
wasn't smart enough to prove that.)
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte

View file

@ -1165,7 +1165,7 @@ run (struct screen *screen)
{
char *script;
int errs_before;
grub_menu_t menu;
grub_menu_t menu = NULL;
char *dummy[1] = { NULL };
auto char * editor_getsource (void);

View file

@ -126,7 +126,7 @@ int
grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
const char *input)
{
int len;
int len = 0;
char *p = 0;
char *line = 0;
YY_BUFFER_STATE buffer;