From 2c4521d202b7d96512a47ec1388fc1695edc2fe0 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 21 Jan 2014 14:28:39 +0300 Subject: [PATCH] helper: taking the address is not a complicated variable This fixes expr_to_var() for addresses. Before you would have had to say expr_to_str() to get the address name. Signed-off-by: Dan Carpenter --- smatch_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smatch_helper.c b/smatch_helper.c index c9e6fbce..7e9871d0 100644 --- a/smatch_helper.c +++ b/smatch_helper.c @@ -159,8 +159,7 @@ static void __get_variable_from_expr(struct symbol **sym_ptr, char *buf, append(buf, ")", len); if (expr->op == SPECIAL_DECREMENT || - expr->op == SPECIAL_INCREMENT || - expr->op == '&') + expr->op == SPECIAL_INCREMENT) *complicated = 1; return; -- 2.11.4.GIT