diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 70b4f52afe5f816ad6a08401b2051db45b135872..602f8ffcb71f8193e9d3c5dcfe4caed5c17d3efe 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -3824,7 +3824,7 @@ lxcDomainDetachDeviceDiskLive(virLXCDriverPtr driver, virDomainDiskDefPtr def = NULL; virCgroupPtr group = NULL; int i, ret = -1; - char *dst; + char *dst = NULL; if (!priv->initpid) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", @@ -3961,7 +3961,7 @@ lxcDomainDetachDeviceHostdevUSBLive(virLXCDriverPtr driver, virDomainHostdevDefPtr def = NULL; virCgroupPtr group = NULL; int idx, ret = -1; - char *dst; + char *dst = NULL; char *vroot; usbDevice *usb = NULL;