Skip to content

Commit

Permalink
Init error_num to 1
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information
stgraber committed Nov 6, 2015
1 parent 126ab9f commit 5619198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lxc/lxccontainer.c
Expand Up @@ -553,6 +553,10 @@ static bool lxcapi_start(struct lxc_container *c, int useinit, char * const argv
/* container exists */
if (!c)
return false;

/* If anything fails before we set error_num, we want an error in there */
c->error_num = 1;

/* container has been setup */
if (!c->lxc_conf)
return false;
Expand Down

0 comments on commit 5619198

Please sign in to comment.