diff options
author | Rob Landley <rob@landley.net> | 2013-09-09 02:44:02 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2013-09-09 02:44:02 -0500 |
commit | 9d4cd46b82b4e5d05c26dc4fa40ef20174ca0355 (patch) | |
tree | 4c376d740bee6777b15a40883b1417dbef746f6c /lib/args.c | |
parent | 7d64dae54bde70744a9154b8ac1cbb09d03881c9 (diff) | |
download | toybox-9d4cd46b82b4e5d05c26dc4fa40ef20174ca0355.tar.gz |
Fix [-group] argument dropping.
Diffstat (limited to 'lib/args.c')
-rw-r--r-- | lib/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -128,8 +128,8 @@ static int gotflag(struct getoptflagstate *gof, struct opts *opt) struct opts *clr; unsigned i = 1; - for (clr=gof->opts, i=1; ; clr = clr->next, i<<=1) - if (clr->arg && (i & toys.optflags)) clr->arg = 0; + for (clr=gof->opts, i=1; clr; clr = clr->next, i<<=1) + if (clr->arg && (i & toys.optflags)) *clr->arg = 0; toys.optflags &= ~opt->dex[0]; } toys.optflags |= opt->dex[1]; |