diff --git a/util/opt/mktab.y b/util/opt/mktab.y index d7cec716e..a4b5c845c 100644 --- a/util/opt/mktab.y +++ b/util/opt/mktab.y @@ -327,7 +327,7 @@ printnodes() { for (p=nodes;pex_operator,p->ex_lnode,p->ex_rnode); - printf("};\n\niarg_t iargs[%d];\n",maxpatlen); + printf("};\n\niarg_t iargs[%d];\n", (maxpatlen>0 ? maxpatlen : 1)); if (patid[0]) printf("static char rcsid[] = %s;\n",patid); }