diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 9a0c7fc7699857218eca8f067dd79ddcbad21a5c..f058d4431f478be7bb7417185031351fccc98ac8 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -13740,7 +13740,7 @@ virDomainChrDefPtr virDomainChrRemove(virDomainDefPtr vmdef, virDomainChrDefPtr chr) { - virDomainChrDefPtr ret, **arrPtr = NULL; + virDomainChrDefPtr ret = NULL, **arrPtr = NULL; size_t i, *cntPtr = NULL; virDomainChrGetDomainPtrsInternal(vmdef, chr->deviceType, &arrPtr, &cntPtr); diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 92a996128e7ec89e5c8b65b5bcd7f6a8ee656279..0620b909e63943fac37c483b2965c1467cc658df 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -17009,7 +17009,7 @@ qemuDomainBlockCommit(virDomainPtr dom, virDomainDiskDefPtr disk = NULL; virStorageSourcePtr topSource; unsigned int topIndex = 0; - virStorageSourcePtr baseSource; + virStorageSourcePtr baseSource = NULL; unsigned int baseIndex = 0; virStorageSourcePtr top_parent = NULL; bool clean_access = false; diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 3e6ed7a2c3ac7126f8c9770fa4b54d770c810b26..1ba4b39dd12145230527bc3738680e4304578428 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -984,7 +984,7 @@ vboxAttachDrivesNew(virDomainDefPtr def, vboxGlobalData *data, IMachine *machine { /* AttachDrives for 3.0 and later */ size_t i; - nsresult rc; + nsresult rc = 0; PRUint32 maxPortPerInst[StorageBus_Floppy + 1] = {}; PRUint32 maxSlotPerPort[StorageBus_Floppy + 1] = {}; PRUnichar *storageCtlName = NULL; diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index 409ecef8bf1801d454a4a97e5c8951c1e8053284..cb29bebb685f00599b4091d7601940381bd91543 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -1037,7 +1037,7 @@ static void _vboxAttachDrivesOld(virDomainDefPtr def, vboxGlobalData *data, IMachine *machine) { size_t i; - nsresult rc; + nsresult rc = 0; PRUint32 maxPortPerInst[StorageBus_Floppy + 1] = {}; PRUint32 maxSlotPerPort[StorageBus_Floppy + 1] = {};