From 7931dddfb81384e6741beb2bfa1100f9313914a8 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 28 Feb 2012 04:25:13 +0100 Subject: [PATCH] * util/getroot.c (grub_find_root_devices_from_btrfs): Add missing initialisation. --- ChangeLog | 5 +++++ util/getroot.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1f6a2071e..0356f974b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Vladimir Serbinenko + + * util/getroot.c (grub_find_root_devices_from_btrfs): Add + missing initialisation. + 2012-02-27 Vladimir Serbinenko * grub-core/partmap/msdos.c (message_warn): Clarify messages. diff --git a/util/getroot.c b/util/getroot.c index e87f42963..7bb547a35 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -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);