recurse: fix has_variable()
commite4e118181989e1e96d8900ad1ba542e0a5f7cf04
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 10:07:17 +0000 (15 13:07 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Dec 2014 10:07:17 +0000 (15 13:07 +0300)
treee449a2ff035db0decf5242dbfb1af9757373923a
parentb9aabaee886f8768e9191ea0e7983a4b7899494b
recurse: fix has_variable()

In the old code it only looked at the symble and not the actual variable.
So it saw "foo->bar" and "foo->baz" as the same variable because they were
both "foo" symbol.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_recurse.c