Commit cd286e391ee709d8e25105b987fdfeb547fa1efb

Thomas de Grivel 2024-09-10T19:41:06

fix ekc3_render

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/ekc3/ekc3.c b/ekc3/ekc3.c
index 5f99803..dea67d9 100644
--- a/ekc3/ekc3.c
+++ b/ekc3/ekc3.c
@@ -424,8 +424,11 @@ sw ekc3_render (s_buf *buf, const p_ekc3 *ekc3)
       }
     }
     else {
-      if (! (r = ekc3_render_tag(buf, &l->tag)))
+      if ((r = ekc3_render_tag(buf, &l->tag)) < 0) {
+        err_puts("ekc3_render: ekc3_render_tag");
+        assert(! "ekc3_render: ekc3_render_tag");
         return r;
+      }
       result += r;
     }
     l = list_next(l);