Filter: Don't alloc varargs array if its length would be zero
This commit is contained in:
parent
30ba7c1661
commit
d65a926a67
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ FID_IFCONST([[
|
|||
}
|
||||
FID_IFCONST([[
|
||||
const struct f_inst **items = NULL;
|
||||
if (constargs) {
|
||||
if (constargs && whati->varcount) {
|
||||
items = alloca(whati->varcount * sizeof(struct f_inst *));
|
||||
const struct f_inst *child = fvar;
|
||||
for (uint i=0; child; i++)
|
||||
|
|
Loading…
Reference in a new issue