Commit 120146b9 by Stéphane Graber

Init error_num to 1

parent 4a311045
...@@ -637,6 +637,10 @@ static bool do_lxcapi_start(struct lxc_container *c, int useinit, char * const a ...@@ -637,6 +637,10 @@ static bool do_lxcapi_start(struct lxc_container *c, int useinit, char * const a
/* container exists */ /* container exists */
if (!c) if (!c)
return false; return false;
/* If anything fails before we set error_num, we want an error in there */
c->error_num = 1;
/* container has been setup */ /* container has been setup */
if (!c->lxc_conf) if (!c->lxc_conf)
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment