From: Christian Brauner Date: Mon, 29 May 2017 12:38:50 +0000 (+0200) Subject: confile: config_cgroup() X-Git-Tag: lxc-1.0.11~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f74c7c8a4e0d931ec4769d821b1e37a97b488451;p=thirdparty%2Flxc.git confile: config_cgroup() Signed-off-by: Christian Brauner --- 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);