Patchwork Re: [PATCH 0/7] ATAPI CDROM passthrough v5

login
register
mail settings
Submitter Ian Jackson
Date Aug. 12, 2009, 5:26 p.m.
Message ID <19074.64315.773182.840038@mariner.uk.xensource.com>
Download mbox | patch
Permalink /patch/31231/
State Superseded
Headers show

Comments

Ian Jackson - Aug. 12, 2009, 5:26 p.m.
I wrote:
> I think I've fixed it up.  It builds for me, anyway.  If it now
> doesn't build do please tell me the error message and I'l fix it.

I did have to do this, to fix an unrelated `may be used initialised'
warning.  I'm not sure if it's the right fix.

Ian.

Patch

diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index 4da916c..2efd21c 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -99,7 +99,7 @@  static PCIDevice *qemu_pci_hot_add_storage(Monitor *mon,
                                            const char *opts)
 {
     PCIDevice *dev;
-    DriveInfo *dinfo;
+    DriveInfo *dinfo=0;
     int type = -1;
     char buf[128];