From fb0752be466a48c768c226193a8867ba6dff877e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 29 May 2017 14:38:50 +0200 Subject: [PATCH] confile: config_cgroup() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 113ecfc27..f4236a7af 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1541,7 +1541,7 @@ static int config_cgroup(const char *key, const char *value, struct lxc_list *cglist = NULL; struct lxc_cgroup *cgelem = NULL; - if (!value || strlen(value) == 0) + if (config_value_empty(value)) return lxc_clear_cgroups(lxc_conf, key); subkey = strstr(key, token);