tools: fix lxc-execute command parsing

Initialize buf to avoid parsing random data later on. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 431ff1ca
......@@ -129,6 +129,7 @@ static bool set_argv(struct lxc_container *c, struct lxc_arguments *args)
char buf[MAXPATHLEN];
char **components, **p;
buf[0] = '\0';
ret = c->get_config_item(c, "lxc.execute.cmd", buf, MAXPATHLEN);
if (ret < 0)
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