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

12
xargs.c
View File

@ -200,7 +200,6 @@ poparg(void)
while ((ch = inputc()) != EOF) { while ((ch = inputc()) != EOF) {
switch (ch) { switch (ch) {
case ' ': case '\t': case '\n': case ' ': case '\t': case '\n':
deinputc(ch);
goto out; goto out;
case '\'': case '\'':
if (parsequote('\'') == -1) if (parsequote('\'') == -1)
@ -223,13 +222,10 @@ poparg(void)
} }
} }
out: out:
if (argbpos > 0) { fillargbuf('\0');
fillargbuf('\0'); if (eofstr && strcmp(argb, eofstr) == 0)
if (eofstr && strcmp(argb, eofstr) == 0) return NULL;
return NULL; return argb;
return argb;
}
return NULL;
} }
static void static void