On Thu, Feb 27, 2014 at 02:16:05PM -0500, S.Çağlar Onur wrote:
> Signed-off-by: S.Çağlar Onur <cag...@10ur.org>

Acked-by: Stéphane Graber <stgra...@ubuntu.com>

> ---
>  src/lxc/bdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/bdev.c b/src/lxc/bdev.c
> index 18f1770..627c09a 100644
> --- a/src/lxc/bdev.c
> +++ b/src/lxc/bdev.c
> @@ -484,7 +484,7 @@ static int dir_destroy(struct bdev *orig)
>  static int dir_create(struct bdev *bdev, const char *dest, const char *n,
>                       struct bdev_specs *specs)
>  {
> -     if (specs->dir)
> +     if (specs && specs->dir)
>               bdev->src = strdup(specs->dir);
>       else
>               bdev->src = strdup(dest);
> -- 
> 1.8.3.2
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: Digital signature

_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to