]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: config_cgroup()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 May 2017 12:38:50 +0000 (14:38 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 15 Aug 2017 21:33:23 +0000 (17:33 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 1380373610b4ff881096ad8932483a83724fed6a..745a815fefe4b99b93d7de3c65584cf272a6488a 100644 (file)
@@ -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);