aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/scsi-generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 60084cff64..3973c25800 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -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;