Skip to content

Commit

Permalink
lxccontainer: load_config_locked()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Aug 23, 2018
1 parent 10190e2 commit 1c154b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -556,10 +556,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;
}

Expand Down

0 comments on commit 1c154b2

Please sign in to comment.