function_hooks: don't mark it as impossible if a function is not in the DB
commite76c0584cf28027ffe5144b4b438e0c61efef1c0
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jan 2017 08:49:19 +0000 (17 11:49 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jan 2017 08:49:19 +0000 (17 11:49 +0300)
treee2b0da981adeab9bf753c78229266b983adfc3cd
parent3756770b7336378fae1308059b1dc1daf851bc70
function_hooks: don't mark it as impossible if a function is not in the DB

The issue here is I remove all traces of strlen() from the DB.  This
affects things like:

if (strlen(foo) >= 4) {

It marks both sides as impossible because it's not in the DB.  The fix is
to add a flag which is set if there are any results and not mark it as
impossible when there are no results.

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