Skip to content

Commit

Permalink
lxccontainer: do_lxcapi_freeze()
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 64da8de commit 46bdf7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -488,12 +488,14 @@ WRAP_API(bool, lxcapi_is_running)
static bool do_lxcapi_freeze(struct lxc_container *c)
{
int ret;

if (!c)
return false;

ret = lxc_freeze(c->name, c->config_path);
if (ret)
return false;

return true;
}

Expand Down

0 comments on commit 46bdf7f

Please sign in to comment.