Commit d65a926a authored by Maria Matejka's avatar Maria Matejka
Browse files

Filter: Don't alloc varargs array if its length would be zero

parent 30ba7c16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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++)