Message ID | 20230405194813.548329-3-i.maximets@ovn.org |
---|---|
State | Accepted |
Headers | show |
Series | expr: Optimize OR expressions. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
ovsrobot/github-robot-_ovn-kubernetes | success | github build: passed |
diff --git a/lib/expr.c b/lib/expr.c index 0cf54d486..9659b9b63 100644 --- a/lib/expr.c +++ b/lib/expr.c @@ -3003,7 +3003,7 @@ expr_sort(struct expr *expr) } free(subs); - return expr; + return expr ? expr : expr_create_boolean(true); } static struct expr *expr_normalize_or(struct expr *expr);