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

Message ID
State Superseded
Headers show

Commit Message

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.



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];