mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Don't ignore XMLParseAllowReboot() errors
The function may fail and report an error, in which case we should not just continue as if nothing happened. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d83d9dde1d
commit
2ad7039e7c
@ -3106,7 +3106,8 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt,
|
||||
priv->chardevStdioLogd = virXPathBoolean("boolean(./chardevStdioLogd)",
|
||||
ctxt) == 1;
|
||||
|
||||
qemuDomainObjPrivateXMLParseAllowReboot(ctxt, &priv->allowReboot);
|
||||
if (qemuDomainObjPrivateXMLParseAllowReboot(ctxt, &priv->allowReboot) < 0)
|
||||
goto error;
|
||||
|
||||
qemuDomainObjPrivateXMLParsePR(ctxt, &priv->prDaemonRunning);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user