mirror of https://gitee.com/openkylin/libvirt.git
lxc: Initialize dst due to potential cleanup usage before setting
This commit is contained in:
parent
2581270527
commit
0b79971b84
|
@ -3102,7 +3102,7 @@ lxcDomainAttachDeviceDiskLive(virLXCDriverPtr driver,
|
|||
virDomainDiskDefPtr def = dev->data.disk;
|
||||
virCgroupPtr group = NULL;
|
||||
int ret = -1;
|
||||
char *dst;
|
||||
char *dst = NULL;
|
||||
struct stat sb;
|
||||
bool created = false;
|
||||
mode_t mode = 0;
|
||||
|
|
Loading…
Reference in New Issue