pci-hotplug: initialize dinfo to NULL in pci_device_hot_add
authorSebastian Herbszt <herbszt@gmx.de>
Sun, 16 Aug 2009 12:07:54 +0000 (14:07 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 00:33:15 +0000 (19:33 -0500)
commit82b9436545b3eeb808069186cec448b31e3fc1b7
tree5c5894c7e037aeac8a8b517a64dc016b7289602d
parent9c1a782e41822366896367786ecea0d67b24d6d5
pci-hotplug: initialize dinfo to NULL in pci_device_hot_add

Suppress the following compiler warning emitted by at least gcc version 4.2.1 (SUSE Linux)
and gcc version 3.4.5 (mingw32 special):

hw/pci-hotplug.c: In function 'pci_device_hot_add':
hw/pci-hotplug.c:102: warning: 'dinfo' may be used uninitialized in this function
hw/pci-hotplug.c:102: note: 'dinfo' was declared here

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci-hotplug.c