txlyre пре 2 дана
родитељ
комит
c2803d827f
1 измењених фајлова са 2 додато и 1 уклоњено
  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;