function_hooks: change order of how db verse implied returns are handled
commit2570cc3856da1260e1263b0eca892a576b2b3020
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Jan 2017 19:36:01 +0000 (10 22:36 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 10 Jan 2017 19:36:01 +0000 (10 22:36 +0300)
tree7f4a369625420ce469f643a64020fd1cc7a3356d
parent45d11d69ff2d52609a7ac71e7286be8db411a06e
function_hooks: change order of how db verse implied returns are handled

The code here is sort of legacy stuff where we have three different ways
of determining the return value.  The issue with this patch concerns the
way strlen() is handled.  We set that up in smatch_common_functions.c where
we have some custom code to say what the return value is.  That code should
over write what the DB says so it should happen after we do the stuff with
the db.

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