extra: type bug handling empty states in reset_struct_members()
commit8130b37114148ff409386ab2d84e1a4faa2842dd
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Feb 2013 08:23:43 +0000 (6 11:23 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Feb 2013 08:23:43 +0000 (6 11:23 +0300)
treec6a97ca96150ab86d646f1bc71b874be97a746ca
parent09e801f40034421a651c5a7d3837b75b2a22a31d
extra: type bug handling empty states in reset_struct_members()

If we don't know the type then alloc_estate_whole() defaults to long.  It's
the wrong type and it causes a problem.

If we have an empty estate then let's just leave it that way.

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