Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9388
b: refs/heads/master
c: f36462f
h: refs/heads/master
v: v3
  • Loading branch information
Rusty Russell authored and Linus Torvalds committed Sep 28, 2005
1 parent c2bee98 commit 55d5240
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3306dd5f7eb2e699f36a4a313fca4b48b18d5e1
refs/heads/master: f36462f078403c1859a7e58177b28e01b3a179e4
10 changes: 8 additions & 2 deletions trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ static char *next_arg(char *args, char **param, char **val)
int in_quote = 0, quoted = 0;
char *next;

/* Chew any extra spaces */
while (*args == ' ') args++;
if (*args == '"') {
args++;
in_quote = 1;
Expand Down Expand Up @@ -121,6 +119,10 @@ static char *next_arg(char *args, char **param, char **val)
next = args + i + 1;
} else
next = args + i;

/* Chew up trailing spaces. */
while (*next == ' ')
next++;
return next;
}

Expand All @@ -135,6 +137,10 @@ int parse_args(const char *name,

DEBUGP("Parsing ARGS: %s\n", args);

/* Chew leading spaces */
while (*args == ' ')
args++;

while (*args) {
int ret;

Expand Down

0 comments on commit 55d5240

Please sign in to comment.