summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opt.c b/src/opt.c
index 2609c77..842d27c 100644
--- a/src/opt.c
+++ b/src/opt.c
@@ -1980,6 +1980,10 @@ static struct bfs_expr *lift_andor_not(struct bfs_opt *opt, struct bfs_expr *exp
}
expr = visit_shallow(opt, expr, &annotate);
+ if (!expr) {
+ return NULL;
+ }
+
return negate_expr(opt, expr, &fake_not_arg);
}