flow: fix segfault on parse error1.56
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Feb 2012 18:40:58 +0000 (21:40 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Feb 2012 18:40:58 +0000 (21:40 +0300)
commitb02f095b0f06333a4dc09d50d87a10559dc8e177
tree68e6463e09790548e5b0798a65c2b8c61a70e061
parentf852d1c701bfe3f7ec83c1bb6d30c4335324a222
flow: fix segfault on parse error

The code below has a syntax error which caused a segfault.  This adds a
check to take care of it.

void func(void)
{
        u8 ac_to_queue[4];
        ac_to_queue = { 0, 1, 2, 3 };
}

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_flow.c