Commit 63e414f8 by Serge Hallyn

c api -> createl: correctly handle 0 template args

parent e4ccd113
......@@ -692,7 +692,8 @@ static bool lxcapi_createl(struct lxc_container *c, char *t, ...)
args[nargs - 1] = arg;
}
va_end(ap);
args[nargs] = NULL;
if (args)
args[nargs] = NULL;
bret = c->create(c, t, args);
......
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