]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/menu_entry.c (run): Quieten uninitialised
authorColin Watson <cjwatson@ubuntu.com>
Fri, 1 Apr 2011 10:43:51 +0000 (11:43 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Fri, 1 Apr 2011 10:43:51 +0000 (11:43 +0100)
  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.

ChangeLog
grub-core/normal/menu_entry.c
grub-core/script/lexer.c

index 847d04b031dfd5a29fd47c6bf083523653811345..21fd6b68bba8035139c9719df9c79cf347c6b562 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 94f6e7f32d47f9c55aab9ea3a4e170b624d193c1..a675ff005a59bc7d6fd69dd8917c0a631b1e348e 100644 (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);
index 909b515fa0bfeeaf97113a9c6c20d4ce16d35f8a..98279079ff6ee775b7987c8ad8564f1863a8e267 100644 (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;