lxccontainer: s/strtok_r()/lxc_iterate_parts()/g

parent 9fee218f
......@@ -738,7 +738,6 @@ static char **split_init_cmd(const char *incmd)
char *copy, *p;
char **argv;
int nargs = 0;
char *saveptr = NULL;
if (!incmd)
return NULL;
......@@ -754,7 +753,7 @@ static char **split_init_cmd(const char *incmd)
} while (!argv);
argv[0] = NULL;
for (; (p = strtok_r(copy, " ", &saveptr)); copy = NULL)
lxc_iterate_parts(p, copy, " ")
push_arg(&argv, p, &nargs);
if (nargs == 0) {
......
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