mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
qemu: don't lose error on setting monitor capabilities
Spotted by clang. Regression introduced in commit e72cc3c11d
.
* src/qemu/qemu_driver.c (qemuConnectMonitor): Don't lose error status.
This commit is contained in:
parent
aa2d747350
commit
6790805d6e
@ -1416,7 +1416,6 @@ qemuConnectMonitor(struct qemud_driver *driver, virDomainObjPtr vm)
|
||||
ret = qemuMonitorSetCapabilities(priv->mon);
|
||||
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||
|
||||
ret = 0;
|
||||
error:
|
||||
if (ret < 0)
|
||||
qemuMonitorClose(priv->mon);
|
||||
|
Loading…
Reference in New Issue
Block a user