From f31be45de1a69f59327c3316c9d612b9248bd280 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 14 Aug 2019 11:49:20 +0200 Subject: [PATCH] Filter: Don't alloc varargs array if its length would be zero --- filter/decl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/decl.m4 b/filter/decl.m4 index 71ac8803a..a5cead756 100644 --- a/filter/decl.m4 +++ b/filter/decl.m4 @@ -143,7 +143,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++) -- 2.47.2