From 23745b81be4214034aff797e2c55d32984953e17 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 30 Jul 2008 17:13:46 +0100 Subject: [PATCH] Fix warnings [This] patch fixes two warnings when compiling. Signed-off-by: Andre Przywara Manually cherry-picked from c9dba66abe8f4c4df28f3b32befe49da1b749a48 --- hw/scsi-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 60084cff..3973c258 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; -- 2.39.5