txlyre 23 hours ago
parent
commit
c2803d827f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      qic.c

+ 2 - 1
qic.c

@@ -3711,7 +3711,8 @@ void compile_node(buffer_t *gbuf, buffer_t *buf, list_t *ctx, table_t *ltab, sta
         buffer_fmt(bbuf, ");\n");
       }
 
-      buffer_fmt(bbuf, "}\n");
+      if (node->b)
+        buffer_fmt(bbuf, "}\n");
 
       node->a->b = nodeb(bbuf);
       node->a->t2 = NULL;