From 9b8bc0c9e2af96dcc3a50fc02a0b1b76c7f6967f Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 4 Apr 2013 08:56:45 +0200 Subject: [PATCH 252/482] * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize): Init err. --- ChangeLog | 5 +++++ grub-core/bus/usb/usbtrans.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8a3fd45..7bbcffa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2013-04-04 Vladimir Serbinenko + * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize): + Init err. + +2013-04-04 Vladimir Serbinenko + * util/grub-setup.c (setup): Handle some corner cases. 2013-04-04 Vladimir Serbinenko diff --git a/grub-core/bus/usb/usbtrans.c b/grub-core/bus/usb/usbtrans.c index 533c3e7..557e71c 100644 --- a/grub-core/bus/usb/usbtrans.c +++ b/grub-core/bus/usb/usbtrans.c @@ -343,7 +343,7 @@ grub_usb_bulk_readwrite_packetize (grub_usb_device_t dev, grub_size_t size, char *data) { grub_size_t actual, transferred; - grub_usb_err_t err; + grub_usb_err_t err = GRUB_USB_ERR_NONE; grub_size_t current_size, position; grub_size_t max_bulk_transfer_len = MAX_USB_TRANSFER_LEN; grub_size_t max; -- 1.8.2.1