Pacify compiler warning
authorColin Watson <cjwatson@ubuntu.com>
Thu, 5 Dec 2013 15:48:27 +0000 (15:48 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Thu, 5 Dec 2013 15:48:27 +0000 (15:48 +0000)
* grub-core/osdep/linux/hostdisk.c
(grub_util_find_partition_start_os): Initialise start to avoid
spurious compiler warning.

ChangeLog
grub-core/osdep/linux/hostdisk.c

index d8e3563..4e110ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-12-05  Colin Watson  <cjwatson@ubuntu.com>
+
+       * grub-core/osdep/linux/hostdisk.c
+       (grub_util_find_partition_start_os): Initialise start to avoid
+       spurious compiler warning.
+
 2013-12-05  Colin Watson  <cjwatson@ubuntu.com>
 
        On Linux, read partition start offsets from sysfs if possible, to
index 74d87a4..abaaf28 100644 (file)
@@ -181,7 +181,7 @@ out:
 grub_disk_addr_t
 grub_util_find_partition_start_os (const char *dev)
 {
-  grub_disk_addr_t start;
+  grub_disk_addr_t start = 0;
   grub_util_fd_t fd;
   struct hd_geometry hdg;