aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index 586e34a18..ff9dc06a4 100644
--- a/init/init.c
+++ b/init/init.c
@@ -414,6 +414,7 @@ static void init_exec(const char *command)
414 char *word, *next; 414 char *word, *next;
415 int i = 0; 415 int i = 0;
416 next = strcpy(buf, command - dash); /* command including "-" */ 416 next = strcpy(buf, command - dash); /* command including "-" */
417 command = next + dash;
417 while ((word = strsep(&next, " \t")) != NULL) { 418 while ((word = strsep(&next, " \t")) != NULL) {
418 if (*word != '\0') { /* not two spaces/tabs together? */ 419 if (*word != '\0') { /* not two spaces/tabs together? */
419 cmd[i] = word; 420 cmd[i] = word;