sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 574e3d48ed1bf60805f16585b4755ac733320494
parent cec487585cad1d652dfafd9d41cf1f9dcff265be
Author: sin <sin@2f30.org>
Date:   Wed,  8 Jan 2014 20:25:07 +0000

No need to check for a positive `argbpos'

No need to deinput a separator.

Diffstat:
Mxargs.c | 12++++--------
1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/xargs.c b/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; + fillargbuf('\0'); + if (eofstr && strcmp(argb, eofstr) == 0) + return NULL; + return argb; } static void