From 491c57a81544939ade0a0f31140cd7edbd3044fe Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 7 Apr 2012 20:03:38 +0200 Subject: [PATCH] * grub-core/commands/usbtest.c (usb_print_str): Silence spurious warning. --- ChangeLog | 5 +++++ grub-core/commands/usbtest.c | 2 +- grub-core/fs/bfs.c | 2 +- grub-core/net/bootp.c | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2fc01debd..282f1d4a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-04-07 Vladimir Serbinenko + + * grub-core/commands/usbtest.c (usb_print_str): Silence spurious + warning. + 2012-04-07 Vladimir Serbinenko * grub-core/lib/adler32.c: Recode due to license unclearness. diff --git a/grub-core/commands/usbtest.c b/grub-core/commands/usbtest.c index 4a051ad1f..72475901d 100644 --- a/grub-core/commands/usbtest.c +++ b/grub-core/commands/usbtest.c @@ -111,7 +111,7 @@ grub_usb_get_string (grub_usb_device_t dev, grub_uint8_t index, int langid, static void usb_print_str (const char *description, grub_usb_device_t dev, int idx) { - char *name; + char *name = NULL; grub_usb_err_t err; /* XXX: LANGID */ diff --git a/grub-core/fs/bfs.c b/grub-core/fs/bfs.c index fd5deb056..ab7f76abf 100644 --- a/grub-core/fs/bfs.c +++ b/grub-core/fs/bfs.c @@ -613,7 +613,7 @@ hop_level (grub_disk_t disk, struct grub_bfs_inode *ino, const char *name) { grub_err_t err; - grub_uint64_t res; + grub_uint64_t res = 0; if (((grub_bfs_to_cpu32 (ino->mode) & ATTR_TYPE) != ATTR_DIR)) return grub_error (GRUB_ERR_BAD_FILE_TYPE, N_("not a directory")); diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c index f1ac86a82..22cf622f9 100644 --- a/grub-core/net/bootp.c +++ b/grub-core/net/bootp.c @@ -469,7 +469,7 @@ grub_cmd_bootp (struct grub_command *cmd __attribute__ ((unused)), { struct grub_net_bootp_packet *pack; struct grub_datetime date; - grub_int32_t t; + grub_int32_t t = 0; struct grub_net_buff *nb; struct udphdr *udph; grub_net_network_level_address_t target;