From f74c7c8a4e0d931ec4769d821b1e37a97b488451 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 138037361..745a815fe 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1305,7 +1305,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); -- 2.47.2