summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-23 11:11:47 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-23 11:11:47 -0500
commit1c755492eab68257420c6824a36892cdeacb970a (patch)
treeac2d752314e6a40b91514be42ced2c4bb539a01e /eval.c
parent2e026d9acbad5ce4b689bc95079cec7192cbf367 (diff)
downloadbfs-1c755492eab68257420c6824a36892cdeacb970a.tar.xz
Implement -O.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index f69c890..b8e9a1b 100644
--- a/eval.c
+++ b/eval.c
@@ -651,6 +651,10 @@ int eval_cmdline(const struct cmdline *cmdline) {
return 0;
}
+ if (cmdline->optlevel >= 3 && cmdline->expr->eval == eval_false) {
+ return 0;
+ }
+
int nopenfd = infer_fdlimit();
struct callback_args args = {