sval: fix sval_to_str()
commit06a822e3a5126ce1b5429f03530200b9bbff3434
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 29 Oct 2012 11:51:58 +0000 (29 14:51 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 29 Oct 2012 11:51:58 +0000 (29 14:51 +0300)
tree23b543f62c71d8584cf5c297892688b38b39a3a6
parent4418f353e1694e2eac26c2f172c7e53a1409d58a
sval: fix sval_to_str()

The problem is that you couldn't print out two values in the same print
because it reused the same buffer.  I've changed it to use alloc_sname().

These strings will be freed when we finish parsing the current function.

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