db: fix handling of nested calls
commit3c10891a2352e96706a5ad144ad40c407c10d6fa
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Sep 2014 10:22:51 +0000 (27 13:22 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Sep 2014 10:22:51 +0000 (27 13:22 +0300)
tree5485e2d33ef411be1b68d436c7dc9be0b3b510e0
parentc9432811a5fb0403448f277e259bfbefa84524f2
db: fix handling of nested calls

If you are trying to parse code like:

x = foo(y = bar());

Then smatch wasn't handling that correctly because it was using the same
db_info variable to store both assignment expressions.  It should use the
pointer that sql_lite offers instead of a global.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch.h
smatch_db.c
smatch_function_hooks.c