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

John Ferlan jferlan at redhat.com
Mon Apr 29 18:39:37 UTC 2013


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;





More information about the libvir-list mailing list