mirror of https://gitee.com/openkylin/libvirt.git
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…
Reference in New Issue