[2315] 2009-06-11 Pavel Roskin <[email protected]>

Pavel Roskin <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2315
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2315
Author:   proski
Date:     2009-06-11 22:14:54 +0000 (Thu, 11 Jun 2009)
Log Message:
-----------
2009-06-11  Pavel Roskin  <[email protected]>

	* disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
	a compiler warning.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/disk/usbms.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-06-11 21:48:48 UTC (rev 2314)
+++ trunk/grub2/ChangeLog	2009-06-11 22:14:54 UTC (rev 2315)
@@ -1,5 +1,8 @@
 2009-06-11  Pavel Roskin  <[email protected]>
 
+	* disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
+	a compiler warning.
+
 	* loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
 	`entry_lo' to fix variable shadowing.
 

Modified: trunk/grub2/disk/usbms.c
===================================================================
--- trunk/grub2/disk/usbms.c	2009-06-11 21:48:48 UTC (rev 2314)
+++ trunk/grub2/disk/usbms.c	2009-06-11 22:14:54 UTC (rev 2315)
@@ -221,7 +221,7 @@
   grub_usbms_dev_t dev = (grub_usbms_dev_t) scsi->data;
   struct grub_usbms_csw status;
   static grub_uint32_t tag = 0;
-  grub_usb_err_t err;
+  grub_usb_err_t err = GRUB_USB_ERR_NONE;
   int retrycnt = 3;
 
  retry:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.