flow: fix initialization of nested structs
commitaf53d34a19f086c02955948f90502d231671fc4a
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Apr 2017 12:37:12 +0000 (12 15:37 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Apr 2017 12:51:09 +0000 (12 15:51 +0300)
treeeba0014ffc1a3013d955301a325f5a255405cea1
parentfd674d9b332997d0fae16edd3f1cbde17a084a96
flow: fix initialization of nested structs

Before if we had an initialization like:

struct foo foo = {
aaa.bbb.ccc = 100,
};

Then it would try to set "foo.ccc = 100;" which does not exist.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_flow.c
validation/sm_initializer.c [new file with mode: 0644]