expr_to_chunk_helper: set *sym when there is only one symbol
commit32688ff4ca6b2d3f5b39eab69c1cfe91b0fca26a
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Jan 2018 14:21:05 +0000 (25 17:21 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 25 Jan 2018 14:21:05 +0000 (25 17:21 +0300)
tree46d8bb33d09921d3833260807f3fbe6917d5494e
parentb7ba418691b5c93de543711ba1dbabf58436cf4e
expr_to_chunk_helper: set *sym when there is only one symbol

The truth is I wrote this some time back and have forgotten what the bug
was.  But presumably it was something like this:  You have "foo + 8" and
you want to have a symbol pointer.

Anyway, I'm sure this is an important bug fix.

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