Re: [PATCH v2 10/37] Adapt to VIR_STRDUP in src/lxc/*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/29/2013 09:50 AM, Michal Privoznik wrote:
> ---
>  src/lxc/lxc_cgroup.c     |  2 +-
>  src/lxc/lxc_conf.c       | 18 +++++++++---------
>  src/lxc/lxc_container.c  |  8 ++++----
>  src/lxc/lxc_controller.c |  6 +++---
>  src/lxc/lxc_driver.c     |  7 ++-----
>  src/lxc/lxc_process.c    |  4 ++--
>  6 files changed, 21 insertions(+), 24 deletions(-)
> 

>  
> @@ -161,17 +161,17 @@ int lxcLoadDriverConfig(virLXCDriverPtr driver)
>      driver->securityRequireConfined = false;
>  
>      /* Set the container configuration directory */
> -    if ((driver->configDir = strdup(LXC_CONFIG_DIR)) == NULL)
> +    if (VIR_STRDUP(driver->configDir,LXC_CONFIG_DIR) < 0)

Missing a space                       ^^^

>          goto no_memory;


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]