From 580ad29288751234bee47ac9f6c04dac1dc529ea Mon Sep 17 00:00:00 2001 From: Charles Duffy Date: Thu, 24 Sep 2009 09:00:24 +0100 Subject: [PATCH] Fix unitialized variable in qemudDomainDetachHostPciDevice() * src/qemu/qemu_driver.c: initialize detach var --- src/qemu/qemu_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index af215caee1..25d983e1da 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6132,7 +6132,7 @@ static int qemudDomainDetachHostPciDevice(virConnectPtr conn, virDomainObjPtr vm, virDomainDeviceDefPtr dev) { - virDomainHostdevDefPtr detach; + virDomainHostdevDefPtr detach = NULL; char *cmd, *reply; int i, ret; pciDevice *pci; -- GitLab