]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Variable initialization.
authorGrégoire Sutre <gregoire.sutre@gmail.com>
Thu, 23 Sep 2010 23:13:50 +0000 (01:13 +0200)
committerGrégoire Sutre <gregoire.sutre@gmail.com>
Thu, 23 Sep 2010 23:13:50 +0000 (01:13 +0200)
ChangeLog
grub-core/commands/acpihalt.c

index cf5cae534a9321846da642486430d30edd15b43b..d02901863bb669df4ea5450c872bb63af9234ba1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-23  Grégoire Sutre  <gregoire.sutre@gmail.com>
+
+       * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
+
 2010-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Support xz compression on yeeloong.
index 0cd32f3890f20d3fbaae18d467087d0427f3b5a1..a396356771254a073038b629c29cf6d1092d6be6 100644 (file)
@@ -136,7 +136,7 @@ skip_ext_op (const grub_uint8_t *ptr, const grub_uint8_t *end)
 static int
 get_sleep_type (grub_uint8_t *table, grub_uint8_t *end)
 {
-  grub_uint8_t *ptr, *prev;
+  grub_uint8_t *ptr, *prev = table;
   int sleep_type = -1;
   
   ptr = table + sizeof (struct grub_acpi_table_header);