]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
Fix warnings
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 30 Jul 2008 16:13:46 +0000 (17:13 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 30 Jul 2008 16:13:46 +0000 (17:13 +0100)
[This] patch fixes two warnings when compiling.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Manually cherry-picked from c9dba66abe8f4c4df28f3b32befe49da1b749a48

hw/scsi-generic.c

index 60084cff6428936bb15d6975fdf5a8979cc32e20..3973c25800fde99a82fe650435a2e2a9bf0cc9a6 100644 (file)
@@ -478,8 +478,8 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
                                  uint8_t *cmd, int lun)
 {
     SCSIDeviceState *s = d->state;
-    uint32_t len;
-    int cmdlen;
+    uint32_t len=0;
+    int cmdlen=0;
     SCSIRequest *r;
     int ret;