No need to check for a positive `argbpos'
No need to deinput a separator.
This commit is contained in:
parent
cec487585c
commit
574e3d48ed
4
xargs.c
4
xargs.c
|
@ -200,7 +200,6 @@ poparg(void)
|
|||
while ((ch = inputc()) != EOF) {
|
||||
switch (ch) {
|
||||
case ' ': case '\t': case '\n':
|
||||
deinputc(ch);
|
||||
goto out;
|
||||
case '\'':
|
||||
if (parsequote('\'') == -1)
|
||||
|
@ -223,13 +222,10 @@ poparg(void)
|
|||
}
|
||||
}
|
||||
out:
|
||||
if (argbpos > 0) {
|
||||
fillargbuf('\0');
|
||||
if (eofstr && strcmp(argb, eofstr) == 0)
|
||||
return NULL;
|
||||
return argb;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue
Block a user