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);