* grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
authorColin Watson <cjwatson@ubuntu.com>
Mon, 25 Aug 2014 22:19:48 +0000 (15:19 -0700)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 25 Aug 2014 22:19:48 +0000 (15:19 -0700)
Initialise pend to pacify GCC.

ChangeLog
grub-core/kern/mips/arc/init.c

index a8f379b..6a99e2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-25  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
+       Initialise pend to pacify GCC.
+
 2014-08-14  Andrey Borzenkov <arvidjaar@gmail.com>
 
        * util/grub-mkconfig.in: Fix typo (gettext_print instead of
index b4f50e4..3834a14 100644 (file)
@@ -360,7 +360,7 @@ grub_machine_get_bootlocation (char **device, char **path)
   char *loaddev = boot_location;
   char *pptr, *partptr;
   char *dname;
-  grub_disk_addr_t poff = -1, pend;
+  grub_disk_addr_t poff = -1, pend = -1;
   struct get_device_name_ctx ctx;
   grub_disk_t parent = 0;
   unsigned i;