Commit 2f64d631 by ashtoreth

Update core.c

fixed indent and vars
parent ed70d078
......@@ -381,15 +381,15 @@ static int container_attach(lua_State *L)
struct lxc_container *c = lua_unboxpointer(L, 1, CONTAINER_TYPENAME);
int argc = lua_gettop(L);
char **argv = NULL;
int i,j;
int i;
if (argc > 1) {
argv = alloca((argc+1) * sizeof(char *));
for (i = 0, j = 0; i < argc-1; i++) {
for (i = 0; i < argc-1; i++) {
const char *arg = luaL_checkstring(L, i+2);
argv[j++] = strdupa(arg);
argv[i] = strdupa(arg);
}
argv[j] = NULL;
argv[i] = NULL;
}
else
{
......
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