[libvirt] [PATCH 3/4] lxc: Initialize dst due to potential cleanup usage before setting
Guannan Ren
gren at redhat.com
Mon Jan 14 16:00:12 UTC 2013
On 01/08/2013 11:41 PM, John Ferlan wrote:
> ---
> src/lxc/lxc_driver.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c
> index 8050ce6..8457ae9 100644
> --- a/src/lxc/lxc_driver.c
> +++ b/src/lxc/lxc_driver.c
> @@ -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;
ACK
More information about the libvir-list
mailing list