From 3cb38f015f83615cf0358e17e0985aa583a3615a Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 29 Feb 2012 14:12:41 +0100 Subject: [PATCH] * util/grub-mkimage.c (generate_image): Silence spurious warning. --- ChangeLog | 4 ++++ util/grub-mkimage.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 028532e37..d96393950 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-02-29 Vladimir Serbinenko + + * util/grub-mkimage.c (generate_image): Silence spurious warning. + 2012-02-29 Vladimir Serbinenko * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to diff --git a/util/grub-mkimage.c b/util/grub-mkimage.c index 76c4aaa8a..72b8d047d 100644 --- a/util/grub-mkimage.c +++ b/util/grub-mkimage.c @@ -712,8 +712,8 @@ generate_image (const char *dir, const char *prefix, struct grub_util_path_list *path_list, *p, *next; grub_size_t bss_size; grub_uint64_t start_address; - void *rel_section; - grub_size_t reloc_size, align; + void *rel_section = 0; + grub_size_t reloc_size = 0, align; size_t decompress_size = 0; if (comp == COMPRESSION_AUTO)