]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer: load_config_locked()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 14:19:59 +0000 (15:19 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 24 Feb 2018 20:38:24 +0000 (21:38 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 84050d146263e602e3a2d53910355fba1980bbd7..4b0f37e626464786f13c844c5113f108c91f9f65 100644 (file)
@@ -583,10 +583,13 @@ static bool load_config_locked(struct lxc_container *c, const char *fname)
 {
        if (!c->lxc_conf)
                c->lxc_conf = lxc_conf_init();
+
        if (!c->lxc_conf)
                return false;
+
        if (lxc_config_read(fname, c->lxc_conf, false) != 0)
                return false;
+
        return true;
 }