diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 60084cff6..3973c2580 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;