1
0
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:
Justin Gatzen 2022-04-20 21:48:03 -04:00 committed by Michal Privoznik
parent abafffb931
commit 04736179b2

View File

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