No need to check for a positive `argbpos'

No need to deinput a separator.
This commit is contained in:
sin 2014-01-08 20:25:07 +00:00
parent cec487585c
commit 574e3d48ed
1 changed files with 4 additions and 8 deletions

12
xargs.c
View File

@ -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;
fillargbuf('\0');
if (eofstr && strcmp(argb, eofstr) == 0)
return NULL;
return argb;
}
static void