slist: preserve the ->line value correctly
commit7e654265c98e2b8e7f24ee453ebce336db095866
authorDan Carpenter <error27@gmail.com>
Mon, 12 Sep 2011 12:25:58 +0000 (12 15:25 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 12 Sep 2011 15:55:51 +0000 (12 18:55 +0300)
tree189047a7082640587c277576969cd02a25c14a89
parent90d11816402cb0020ee6b11081a32bcba69a5420
slist: preserve the ->line value correctly

Smatch hasn't really used the ->line value up to now.  Partly that's
because it hasn't been showing the correct line number.

In add_possible() the alloc_state_no_name() is basically trying to do a
small clone of the sm_state so the line should be preserved.

In merge_sm_states() it doesn't make sense to try preserve the ->line
value.  What we want is the the line where the merge happens.

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