From b4a6a53310b5c2e6b42449ed6fd68b439c1a1ac6 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Mon, 27 Feb 2012 10:31:46 +0100 Subject: [PATCH] * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a warning. --- ChangeLog | 5 +++++ grub-core/normal/menu_text.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b102f1e7d..76e40dc1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Vladimir Serbinenko + + * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a + warning. + 2012-02-27 Vladimir Serbinenko * util/grub-install.in: Use file identifier if no UUID is available diff --git a/grub-core/normal/menu_text.c b/grub-core/normal/menu_text.c index d79e0c9e3..e0f456d08 100644 --- a/grub-core/normal/menu_text.c +++ b/grub-core/normal/menu_text.c @@ -70,7 +70,7 @@ grub_print_message_indented_real (const char *msg, int margin_left, grub_uint32_t *unicode_msg; grub_uint32_t *last_position; grub_size_t msg_len = grub_strlen (msg) + 2; - int ret; + int ret = 0; unicode_msg = grub_malloc (msg_len * sizeof (grub_uint32_t));