get_variable_from_expr_complex(): return proper symbol for array expressions
commit3e522256cfc1177fdbb959a017a304d0681aef38
authorDan Carpenter <error27@gmail.com>
Thu, 8 Jul 2010 10:09:29 +0000 (8 12:09 +0200)
committerDan Carpenter <error27@gmail.com>
Thu, 8 Jul 2010 10:09:29 +0000 (8 12:09 +0200)
tree935f6de93526cd4ad289d58bbbcb5492fca82d62
parent35b72208e51b3c6dd20b7abb1e2d700c7b456b49
get_variable_from_expr_complex(): return proper symbol for array expressions

For the "foo[bar]" expression, we used to return the symbol for "bar" but
really it would be better to return the symbol for foo.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_helper.c