summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 30ee491..4f86647 100644
--- a/parse.c
+++ b/parse.c
@@ -1616,6 +1616,11 @@ struct cmdline *parse_cmdline(int argc, char *argv[]) {
}
}
+ if (cmdline->optlevel >= 3 && cmdline->expr->pure) {
+ free_expr(cmdline->expr);
+ cmdline->expr = &expr_false;
+ }
+
if (cmdline->nroots == 0) {
if (!cmdline_add_root(cmdline, ".")) {
goto fail;