1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

qemu: Move setting of encobjAdded for qemuDomainAttachSCSIDisk

A post push realization that the boolean should be set inside the condition
This commit is contained in:
John Ferlan 2016-07-19 10:50:40 -04:00
parent c144f14c12
commit 4f5debbeb4

View File

@ -651,8 +651,8 @@ qemuDomainAttachSCSIDisk(virConnectPtr conn,
encobjProps = NULL; /* qemuMonitorAddObject consumes */
if (rv < 0)
goto exit_monitor;
encobjAdded = true;
}
encobjAdded = true;
if (qemuMonitorAddDrive(priv->mon, drivestr) < 0)
goto exit_monitor;