Blame SOURCES/0252-grub-core-bus-usb-usbtrans.c-grub_usb_bulk_readwrite.patch

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