From 15524628ea7fe19d35692334d5c4b7dd1bac121d Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 21 May 2013 23:58:36 +0300 Subject: [PATCH] math: use correct variable in handle_conditional_rl() This should be splitting the condition instead of the whole expression. That's part of why the memory was running out. Perhaps I can remove the "bail on low memory" check after testing some more. Signed-off-by: Dan Carpenter --- smatch_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_math.c b/smatch_math.c index 8d22ac2d..cb99d464 100644 --- a/smatch_math.c +++ b/smatch_math.c @@ -490,7 +490,7 @@ static struct range_list *handle_conditional_rl(struct expression *expr, int imp __push_fake_cur_slist(); final_pass = 0; - __split_whole_condition(expr); + __split_whole_condition(expr->conditional); true_rl = _get_rl(expr->cond_true, implied); __push_true_states(); __use_false_states(); -- 2.11.4.GIT