use skip_whitespace where appropriate
This commit is contained in:
1 parent
c8400a2162
commit
d18a3a20db
8 files changed
+98
-105
No files matched your search
+1
-1
@@ -119,7 +119,7 @@ static char *parse_pipeline(char *cmdline, struct pipeline *line)
|
||||
char *end;
|
||||
|
||||
// Skip leading whitespace and detect end of line.
|
||||
while (isspace(*start)) start++;
|
||||
start = skip_whitespace(start);
|
||||
if (!*start || *start=='#') {
|
||||
if (ENABLE_BBSH_JOBCTL) line->cmdlinelen = start-cmdline;
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user