delete_state(): fix a bug calling delete state inside conditions
commita12867cc55f35297208e391e67f188160e1e6cb9
authorDan Carpenter <error27@gmail.com>
Mon, 18 Jan 2010 17:47:47 +0000 (18 20:47 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 18 Jan 2010 17:47:47 +0000 (18 20:47 +0300)
tree1f47a3975d4175aac4d9f3ec579ffd4ab9e585d4
parentc6b859b0035ec5a4ae09d8f8826760b64c1000df
delete_state():  fix a bug calling delete state inside conditions

The problem was that if you call delete_state() inside an if condition
it didn't do anything.  The correct thing is to make sure the state is
deleted for both the true and false paths.

Signed-off-by: Dan Carpenter <error27@gmail.com>
smatch_modification_hooks.c
smatch_slist.c
smatch_slist.h
smatch_states.c