extra: handle merging NULL pointers better
commit2c079508e1a0fe44c5e8f5ba179b2c28e7048fcf
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 17 Sep 2014 09:45:36 +0000 (17 12:45 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 17 Sep 2014 09:45:36 +0000 (17 12:45 +0300)
tree2c733d15d6d0ad379ddd4e6c4721c443ba281fbc
parent2174a7b029f369495115ae19b2e7e685d8a42b91
extra: handle merging NULL pointers better

Say you have:

if (foo) {
foo->bar = 1;
} else {
XXX
}

In the original code when we came to the end of the else statement it would
have foo->bar as an unmatched state and it would set it to min-max.  Really
we should set it to the empty state.  That way at the end of the statement
we have foo->bar = 1 instead of foo->bar is unknown.

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