fix segv in "{,}" combound literal
This commit is contained in:
parent
fef838db2d
commit
b082659f19
1 changed files with 2 additions and 0 deletions
2
tccgen.c
2
tccgen.c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue