aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/args.c b/lib/args.c
index dec133e2..7033772e 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -128,7 +128,7 @@ static int gotflag(struct getoptflagstate *gof, struct opts *opt)
gof->excludes |= opt->dex[2];
if (opt->flags&2) gof->stopearly=2;
- if (toys.optflags && gof->excludes) {
+ if (toys.optflags & gof->excludes) {
struct opts *bad;
unsigned i = 1;