helper: handle assignments in expr_to_str()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Feb 2013 12:14:31 +0000 (14 15:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Feb 2013 12:14:31 +0000 (14 15:14 +0300)
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_helper.c

index de3057b..bcd8264 100644 (file)
@@ -156,6 +156,7 @@ static void __get_variable_from_expr(struct symbol **sym_ptr, char *buf,
                        *complicated = 1;
                return;
        }
+       case EXPR_ASSIGNMENT:
        case EXPR_COMPARE:
        case EXPR_LOGICAL:
        case EXPR_BINOP: {