mtag: fix handling of arrays
commit6404c1e1fc635e32d0a59aba6aa027c4ad69bc4f
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2019 08:41:40 +0000 (15 11:41 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 15 Mar 2019 08:41:40 +0000 (15 11:41 +0300)
treee1cfef823051ed4f8d96f6b6f71430b5d8a46b93
parenta3ca86e655afe6cbb35b394ab67bb71b84b60a45
mtag: fix handling of arrays

The problem here is that say we have "foo->bar[]", that's an array but it's
not an EXPR_SYMBOL like the code assumes.  We end up generating a wrong
pointer as a string.  This code is just wrong, and can be deleted.

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