]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/getroot.c (grub_find_root_devices_from_btrfs): Add
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 28 Feb 2012 03:25:13 +0000 (04:25 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 28 Feb 2012 03:25:13 +0000 (04:25 +0100)
missing initialisation.

ChangeLog
util/getroot.c

index 1f6a2071ec1130473959beb37ca72dd937eb25ba..0356f974b8b65dbfc4668c922118ea226a0c4d06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/getroot.c (grub_find_root_devices_from_btrfs): Add
+       missing initialisation.
+
 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/partmap/msdos.c (message_warn): Clarify messages.
index e87f42963221db4bd808bc229b995cd1ce835dc1..7bb547a354e06ee62b5dc9e6764554a173d3d877 100644 (file)
@@ -455,7 +455,7 @@ grub_find_root_devices_from_btrfs (const char *dir)
 {
   int fd;
   struct btrfs_ioctl_fs_info_args fsi;
-  int i, j;
+  int i, j = 0;
   char **ret;
 
   fd = open (dir, 0);