mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virsh: Initialize vshData in cmdMigrate
If the virConnect did not succeeed, we called virConnectClose on uninitialized data. Introduced by commit 7eabd55.
This commit is contained in:
parent
d59b2c920c
commit
c285ffc4c2
@ -9122,7 +9122,7 @@ cmdMigrate(vshControl *ctl, const vshCmd *cmd)
|
||||
bool functionReturn = false;
|
||||
int timeout = 0;
|
||||
bool live_flag = false;
|
||||
vshCtrlData data;
|
||||
vshCtrlData data = { .dconn = NULL };
|
||||
|
||||
if (!(dom = vshCommandOptDomain(ctl, cmd, NULL)))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user