fix segv in "{,}" combound literal

This commit is contained in:
matthias 2019-03-06 18:51:13 +01:00
parent fef838db2d
commit b082659f19

View File

@ -6942,6 +6942,8 @@ static void decl_initializer(CType *type, Section *sec, unsigned long c,
" optionally enclosed in braces");
skip('{');
no_oblock = 0;
if (tok == ',')
tcc_error("unexpected ','");
}
/* only parse strings here if correct type (otherwise: handle