mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Check usage count of qemu:override node
When <qemu:override> is the only usage of the qemu namespace the entire section is mistakenly removed. Add check for use count. Signed-off-by: Justin Gatzen <justin.gatzen@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
abafffb931
commit
04736179b2
@ -3514,7 +3514,8 @@ qemuDomainDefNamespaceParse(xmlXPathContextPtr ctxt,
|
||||
|
||||
if (nsdata->args || nsdata->num_env > 0 ||
|
||||
nsdata->capsadd || nsdata->capsdel ||
|
||||
nsdata->deprecationBehavior)
|
||||
nsdata->deprecationBehavior ||
|
||||
nsdata->ndeviceOverride > 0)
|
||||
*data = g_steal_pointer(&nsdata);
|
||||
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user