Permalink
Browse files

c api -> createl: correctly handle 0 template args

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information...
1 parent e4ccd11 commit 63e414f8c128cdf391ae95c547509eb14c59f826 Serge Hallyn committed Mar 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/lxc/lxccontainer.c
View
@@ -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);

0 comments on commit 63e414f

Please sign in to comment.